diff --git a/custom_components/hon/sensor.py b/custom_components/hon/sensor.py index 6bb633e..78193e3 100644 --- a/custom_components/hon/sensor.py +++ b/custom_components/hon/sensor.py @@ -483,7 +483,7 @@ def coordinator_update(self): if self._device.getInt("totalWashCycle")-1 <= 0: self._attr_native_value = None else: - self._attr_native_value = round((self._device.getFloat("totalWaterUsed") / divider ) /(self._device.getFloat("totalWashCycle")-1),2) + self._attr_native_value = round((self._device.getFloat("totalWaterUsed") ) /(self._device.getFloat("totalWashCycle")-1),2) class HonBaseTotalElectricityUsed(HonBaseSensorEntity): @@ -496,7 +496,7 @@ def __init__(self, hass, coordinator, entry, appliance) -> None: self._attr_icon = "mdi:connection" def coordinator_update(self): - self._attr_native_value = self._device.getFloat("totalElectricityUsed") / divider + self._attr_native_value = self._device.getFloat("totalElectricityUsed") class HonBaseTotalWashCycle(HonBaseSensorEntity): @@ -520,7 +520,7 @@ def __init__(self, hass, coordinator, entry, appliance) -> None: self._attr_icon = "mdi:water-pump" def coordinator_update(self): - self._attr_native_value = self._device.getFloat("totalWaterUsed") / divider + self._attr_native_value = self._device.getFloat("totalWaterUsed") class HonBaseWeight(HonBaseSensorEntity):