def validate(self, value):
    value = super(FloatProperty, self).validate(value)
    if value is not None and not isinstance(value, float):
      raise BadValueError('Property %s must be a float' % self.name)
    return value
Initialize the mock device.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/FloatProperty.validate--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py/MockToggleDevice.__init__