Taraman17 / hass-homee

a Home Assistant custom component to integrate the homee smart home platform
MIT License
14 stars 2 forks source link

Dimmable Lights after updating to version 2.9.0 are unavailable #50

Closed juergjue closed 4 months ago

juergjue commented 5 months ago

Type of problem

Version

2.9.0

Detailed description

After updating to version 2.9.0 dimmable lights are now unavailable

299421957-1cca63eb-693e-4485-ae67-76ac2997f439

Error log

(Hope the short log is enough)

Logger: homeassistant.components.light Source: helpers/entity_platform.py:360 Integration: Light (documentation, issues) First occurred: 19:20:20 (8 occurrences) Last logged: 21:05:08

Error while setting up homee platform for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/homee/light.py", line 108, in async_setup_entry devices.append(HomeeLight(node, light_set, index, config_entry)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/homee/light.py", line 158, in init self._supported_features = get_light_features(self) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/homee/light.py", line 43, in get_light_features features |= ColorMode.BRIGHTNESS TypeError: unsupported operand type(s) for |=: 'int' and 'ColorMode'


Thx for having a look on it.
Taraman17 commented 5 months ago

Please try the latest beta. It looks good on my side, but I can't try to control lights, since I don't have any in homee.

majacob1 commented 5 months ago

I had the same problem (using Warema dimmable lights) - with 2.9.1-beta it's working fine. Thanks for the prompt fix!

Taraman17 commented 4 months ago

Closed with #55