- changed status to resolved
Impossible energy consumption measure of total
Issue #11
resolved
Hey,
In daikin_base.py, the else clause of delta_energy_consumption seems to be triggered quite a lot by current_total_power_consumption, resulting in a lot of exception traces in home assistant like the below. Any clue how to fix this?
2021-01-28 00:29:57 ERROR (MainThread) [pydaikin.daikin_base] Impossible energy consumption measure of total
2021-01-28 00:29:57 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 619, in _update_entity_states
await asyncio.gather(*tasks)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 283, in async_update_ha_state
self._async_write_ha_state()
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/daikin/sensor.py", line 138, in state
return round(self._api.device.current_total_power_consumption, 3)
File "/srv/homeassistant/lib/python3.8/site-packages/pydaikin/daikin_base.py", line 446, in current_total_power_consumption
return self.delta_energy_consumption(time_window, mode='total') * (
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
Comments (1)
-
- Log in to comment
Solved in 2.4.2.