Skip to content
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

Merged
merged 1 commit into from
Feb 9, 2017
Merged

Convert config.components to a set #5824

merged 1 commit into from
Feb 9, 2017

Conversation

balloob
Copy link
Member

@balloob balloob commented Feb 9, 2017

Description:
Convert config.components to a set from a list, as each component can only be loaded once.

@mention-bot
Copy link

@balloob, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fabaff, @jaharkes and @kellerza to be potential reviewers.

@balloob
Copy link
Member Author

balloob commented Feb 9, 2017

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 in check and iterations as list, so those checks should be backwards compatible.

@@ -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)
Copy link
Contributor

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?

Copy link
Member Author

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

@kellerza kellerza merged commit c54517d into dev Feb 9, 2017
@kellerza
Copy link
Member

kellerza commented Feb 9, 2017

Looks good 🐬

@kellerza kellerza deleted the config-components-set branch February 9, 2017 18:22
robbiet480 added a commit to robbiet480/home-assistant that referenced this pull request Feb 13, 2017
pvizeli pushed a commit that referenced this pull request Feb 13, 2017
Add an optional extended description…
@home-assistant home-assistant locked and limited conversation to collaborators May 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants