cryptk / haomnilogic-local

A Home Assistant integration for Hayward OmniLogic/OmniHub pool controllers using the local UDP api
Apache License 2.0
18 stars 4 forks source link

Unable to load lights after 2024.2.1 upgrade #86

Closed mikesalz closed 4 months ago

mikesalz commented 4 months ago

I upgraded to HA 2024.2.1 today. Since then, most of my Omnilogic entities still work. But lights are failing. Error below:

Logger: homeassistant.components.light Source: helpers/entity_platform.py:352 Integration: Light (documentation, issues) First occurred: 9:37:23 PM (2 occurrences) Last logged: 9:40:02 PM

Error while setting up omnilogic_local platform for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 352, in _async_setup_platform await asyncio.gather(pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities await asyncio.gather(tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 782, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1325, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1049, in async_calculate_state attr.update(self.state_attributes or {}) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 1129, in state_attributes self.validate_color_mode(color_mode, legacy_supported_color_modes, effect) File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 1093, in validate_color_mode effect_color_modes = supported_color_modes | {ColorMode.ONOFF}


TypeError: unsupported operand type(s) for |: 'list' and 'set'
mikesalz commented 4 months ago

I just noticed that someone else posted a similar issue. Sorry for duplicating!!

mikesalz commented 4 months ago

@cryptk I bet this has something to do with the issue!

https://developers.home-assistant.io/blog/2024/01/23/light-color-mode-changes/

mikesalz commented 4 months ago

FYI - I rolled back to 2024.1.6 this morning and my OmniLogic lights are now working. So the issue does seem to be related to the changes in the February HA release.

cryptk commented 4 months ago

@mikesalz should fixed with 0.7.1 of the integration

mikesalz commented 4 months ago

Thanks @cryptk! I just installed it and so far everything looks perfect. I really appreciate your help!