Anyone been getting a hydrawise: Error on device update!
with a bunch of IndexError: list index out of range
on startup for sensory, binary_sensor, and switch?
I’m seeing this on 0.116.2. I believe I was seeing it on 0.115 as well.
Full error log:
2020-10-10 14:30:06 ERROR (MainThread) [homeassistant.components.switch] hydrawise: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 346, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/switch.py", line 87, in update
self._state = (mydata.relays[relay_data]["timestr"] != "") and (
IndexError: list index out of range
2020-10-10 14:30:06 ERROR (MainThread) [homeassistant.components.binary_sensor] hydrawise: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 346, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/binary_sensor.py", line 56, in update
relay_data = mydata.relays[self.data["relay"] - 1]
IndexError: list index out of range
2020-10-10 14:30:06 ERROR (MainThread) [homeassistant.components.sensor] hydrawise: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 346, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/sensor.py", line 51, in update
relay_data = mydata.relays[self.data["relay"] - 1]
IndexError: list index out of range
2020-10-10 14:30:07 ERROR (MainThread) [homeassistant.components.switch] hydrawise: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 346, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/switch.py", line 85, in update
self._state = mydata.relays[relay_data]["timestr"] == "Now"
IndexError: list index out of range
2020-10-10 14:30:07 ERROR (MainThread) [homeassistant.components.sensor] hydrawise: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 346, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/sensor.py", line 51, in update
relay_data = mydata.relays[self.data["relay"] - 1]
IndexError: list index out of range