-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Light: changes required to work in current HA #134
Conversation
- remove `delay` parameter from get_controller call - don't await async_write_ha_state - call async_write_ha_state when state is changed to off
These are changes on top of the maintainers changes to #132 to bring it up to date with this version of the integration. With these changes, my previous set up (based on smartHomeHub#997) is again working on HA 2024.9 |
Hello, I was briefly checking light documentation and I have some doubts about how light.py is reflecting
This seems to be as wrong. Can you please explain? |
Because there is no color bulb support, the supported color modes should be one of COLOR_TEMP, BRIGHTNESS or ONOFF. Probably this could be cleaned up to use the parent class's self._attr_supported_color_modes and supported_color_modes implementation (I wrote it 18 months ago before understanding fully the shortcuts available in the base entity classes). |
you are correct, I checked te HA implementation and it says that those are mutually exclusive:
BTW: I think I saw some LED strips with IR remote, so there are probably some light with RGB support... I will try to go trough rest of the code to be sure I understand it to be able to maintain it. |
I just checked the docs (LIGHT.md) and it will need a bit of overhaul. Please check FAN.md for reference. Would you be please able to do it? Thank you. |
I added light support into the READM.md. You do not need to provide LIGHT_CODES.md, as those pages are autogenerated on the merge with master. |
delay
parameter from get_controller call