JohNan/homeassistant-wellbeing

After update to beta (2022.4.0b3), I'm not able to control fanspeed or preset-mode anymore

Closed this issue · 0 comments

Logger: homeassistant
Source: custom_components/wellbeing/fan.py:60
Integration: Wellbeing (documentation, issues)
First occurred: 19:31:42 (22 occurrences)
Last logged: 20:13:48

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 137, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 328, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 572, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 339, in state_attributes
data[ATTR_PERCENTAGE_STEP] = self.percentage_step
File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 299, in percentage_step
return 100 / self.speed_count
File "/config/custom_components/wellbeing/fan.py", line 60, in speed_count
return len(self.speed_list)
AttributeError: 'WellbeingFan' object has no attribute 'speed_list'