-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Convert config.components to a set #5824
Conversation
This is a breaking change but a minor one - it is not a variable that was only managed by bootstrap. A set implements the same |
@@ -276,7 +276,6 @@ def setup(hass, config): | |||
# Stops server when Homeassistant is shutting down | |||
hass.bus.listen_once( | |||
EVENT_HOMEASSISTANT_STOP, hass.data[DATA_HOMEMATIC].stop) | |||
hass.config.components.append(DOMAIN) |
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.
Was this removed on purpose?
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.
Yeah, it's the responsibility of bootstrap to do this. Not sure how it ended up here
Looks good 🐬 |
Description:
Convert config.components to a set from a list, as each component can only be loaded once.