Skip to content

Commit

Permalink
0.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
gvigroux committed Jan 27, 2024
1 parent 7b84881 commit c2da8a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/hon/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit c2da8a6

Please sign in to comment.