-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
MQTT JSON light options brightness
and color_mode
should be deprecated
#110682
Comments
Hey there @emontnemery, @jbouwh, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) mqtt documentation |
brightness
and color_mode
should be deprecatedbrightness
and color_mode
should be deprecated
Yes, this makes sense. The following flags are already deprecated, and removed from the documentation:
We can indeed also deprecate the The |
You're right. A deprecation warning is welcome. Hopefully the impact will be small, since this could be an issue only if you have |
@fredck We cannot deprecated the |
@jbouwh, As long as the documentation clearly states the use case, and that specifying I see that @emontnemery is already on your PR. Thanks a lot for the effort! 👍 |
The problem
The
brightness
andcolor_mode
configuration options, available in the json configuration schema, should be deprecated in the light platform of the MQTT integration, in favor of thesupported_color_modes
configuration.The rational is simple:
supported_color_modes
conveys the same information that these "flags" provide.brightness: true
to have brightness only supported, but this is not true. We faced issues because of that, in fact (which lead to this issue)supported_color_modes
is the way to go and already deprecated the support for "flags" (supported_features
)I'm not saying that these attributes (which for sure are widely used already) should be removed. It would be enough to mark them as deprecated in the documentation and to not require them when
supported_color_modes
is defined.Actually, the documentation should actively recommend implementing
supported_color_modes
.What version of Home Assistant Core has the issue?
core-2024.2.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
MQTT
Link to integration documentation on our website
https://www.home-assistant.io/integrations/mqtt/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: