Skip to content

Hydrawise Binary Sensor Issue #12

Description

@txwindsurfer

This issue was reported in Home Assistant as #77087 back in August and remains open. About 3 days ago after years of using the integration without any problems, I started getting this error after a reboot as well some other folks.

The error being reported and keeping the integration for loading is:

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

I am running
Home Assistant 2022.11.5
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest

It could be intermittent as the integration loaded yesterday but today after a reboot will not load with this error. It does not appear to be a rate limiting issue as an http call to the api using my key (https://api.hydrawise.com/api/v1/statusschedule.php?api_key= ) returns the correct status of my Hydrawise system.

Thank you for this integration. It is extremely useful for automating my 19 irrigation zones. Please let me know how I can help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions