Hello,
Since a few HASS release, hydroquebec component seems to be broken, at least for me. I opened an issue in GitHub, but so far no one replied. So here is my issue:
-
all fields that should display a CAD value (like period_mean_daily_bill) will display “unknow CAD”
-
log file is filled with error like:
17-04-28 10:39:23 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.HydroQuebec_period_mean_daily_bill fails
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py”, line 225, in async_update_ha_state
None, self.update)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/hydroquebec.py”, line 157, in update
self._state = round(self.hydroquebec_data.data[self.type], 2)
TypeError: type NoneType doesn’t define round method
Any one else having this issue?