-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Xiaomi MiIO Switch: Allow unavailable devices at startup by model setting #12626
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
Xiaomi MiIO Switch: Allow unavailable devices at startup by model setting #12626
Conversation
'zimi.powerstrip.v2', | ||
'chuangmi.plug.m1', | ||
'chuangmi.plug.v2', | ||
]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closing bracket does not match visual indentation
@rytilahti Could you care about this one, too? It's the same like #12449 which is already merged. |
Looks good to me, although the title is wrong, adding availability is more a minor change wrt the model setting, right? |
The model setting is the requirement for the unavailable state. If you set the model the entity can be instantiated (= unavailable entity) and becomes available after the first successful request. |
Indeed, however, the updated title will inform anyone reading the changelogs much better, thanks! |
Description:
A new configuration key "model" can be used to define the device type. The key is optional but required to bypass the device model detection f.e. if the device isn't available at the startup of homeassistant.
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io/pull/4782
Example entry for
configuration.yaml
(if applicable):