diff --git a/homeassistant/components/plant.py b/homeassistant/components/plant.py index 3a6876e3e12..523fa2d6859 100644 --- a/homeassistant/components/plant.py +++ b/homeassistant/components/plant.py @@ -171,15 +171,15 @@ class Plant(Entity): reading = self._sensormap[entity_id] if reading == READING_MOISTURE: - self._moisture = int(value) + self._moisture = int(float(value)) elif reading == READING_BATTERY: - self._battery = int(value) + self._battery = int(float(value)) elif reading == READING_TEMPERATURE: self._temperature = float(value) elif reading == READING_CONDUCTIVITY: - self._conductivity = int(value) + self._conductivity = int(float(value)) elif reading == READING_BRIGHTNESS: - self._brightness = int(value) + self._brightness = int(float(value)) else: raise _LOGGER.error("Unknown reading from sensor %s: %s", entity_id, value)