jason0x43/hacs-hubitat

Bond fan missing 'very-low' speed setting

Closed this issue · 0 comments

rehpa commented

| 2024-03-20 16:55:56.921 ERROR (MainThread) [homeassistant.components.fan] Error while setting up hubitat platform for fan
| Traceback (most recent call last):
| File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 350, in _async_setup_platform
| await asyncio.shield(awaitable)
| File "/config/custom_components/hubitat/fan.py", line 169, in async_setup_entry
| create_and_add_entities(hass, entry, async_add_entities, "fan", HubitatFan, is_fan)
| File "/config/custom_components/hubitat/entities.py", line 39, in create_and_add_entities
| EntityClass(hub=hub, device=device) for device in devices_with_entity
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/config/custom_components/hubitat/fan.py", line 42, in init
| self.load_state()
| File "/config/custom_components/hubitat/fan.py", line 47, in load_state
| self._attr_percentage = self._get_percentage()
| ^^^^^^^^^^^^^^^^^^^^^^
| File "/config/custom_components/hubitat/fan.py", line 68, in _get_percentage
| idx = self.speeds.index(speed)
| ^^^^^^^^^^^^^^^^^^^^^^^^
| ValueError: 'very-low' is not in list

| 2024-03-20 16:57:47.813 WARNING (MainThread) [custom_components.hubitat.hub] Error handling event : 'very-low' is not in list

This is a Bond controlled fan/light device

Screenshots
image

Environment

  • Home Assistant version: 2024.3.1
  • Integration version: v0.9.25