core: hydrawise binary sensors and switches not available after 2022.12 update
The problem
hydrawise binary sensors and switches not available after 2022.12 update
What version of Home Assistant Core has the issue?
2022.12
What was the last working version of Home Assistant Core?
2022.11.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Hydrawise
Link to integration documentation on our website
https://www.home-assistant.io/integrations/hydrawise/
Diagnostics information
Logger: homeassistant.components.binary_sensor Source: components/hydrawise/init.py:96 Integration: Binary sensor (documentation, issues) First occurred: 1:12:20 PM (1 occurrences) Last logged: 1:12:20 PM
Error while setting up hydrawise platform for binary_sensor Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 281, in _async_setup_platform await asyncio.shield(task) File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) File “/usr/src/homeassistant/homeassistant/components/hydrawise/binary_sensor.py”, line 64, in setup_platform HydrawiseBinarySensor(hydrawise.current_controller, BINARY_SENSOR_STATUS) File “/usr/src/homeassistant/homeassistant/components/hydrawise/init.py”, line 96, in init self._attr_name = f"{self.data[‘name’]} {description.name}" TypeError: list indices must be integers or slices, not str
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.binary_sensor
Source: components/hydrawise/__init__.py:96
Integration: Binary sensor (documentation, issues)
First occurred: 1:12:20 PM (1 occurrences)
Last logged: 1:12:20 PM
Error while setting up hydrawise platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/binary_sensor.py", line 64, in setup_platform
HydrawiseBinarySensor(hydrawise.current_controller, BINARY_SENSOR_STATUS)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/__init__.py", line 96, in __init__
self._attr_name = f"{self.data['name']} {description.name}"
TypeError: list indices must be integers or slices, not str
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (3 by maintainers)
Commits related to this issue
- Increase Hydrawise default scan interval (#85398) Increasing default scan interval Fixes #83540 — committed to home-assistant/core by mobilutz a year ago
- Increase Hydrawise default scan interval (#85398) Increasing default scan interval Fixes #83540 — committed to home-assistant/core by mobilutz a year ago
- Increase Hydrawise default scan interval (#85398) Increasing default scan interval Fixes #83540 — committed to tronikos/home-assistant-core by mobilutz a year ago
- Increase Hydrawise default scan interval (#85398) Increasing default scan interval Fixes #83540 — committed to rlippmann/core by mobilutz a year ago
- Increase Hydrawise default scan interval (#85398) Increasing default scan interval Fixes #83540 — committed to SplinterHead/core by mobilutz a year ago
I am not sure this is connected , but Hydrawise has added a limit to the amount of calls to the endpoints. if you call some of them more than 5 times in 5 minutes you get this :
“Exceeded maximum number of requests. You cannot make more than 5 requests in any 5 minute period to this endpoint.”
when I remove the integration , wait for 5 min and then add it again (with the same API key) everything works again until the next time I restart .