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

add reload core config service #2350

Merged
merged 1 commit into from
Jun 22, 2016
Merged

add reload core config service #2350

merged 1 commit into from
Jun 22, 2016

Conversation

balloob
Copy link
Member

@balloob balloob commented Jun 22, 2016

Description:
Add a new service homeassistant/reload_core_config which will reload the [homeassistant] part of configuration.yaml (which includes customize) and applies it.

Changes to customize attributes on entities will not be reflected until the next time that related entities update.

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#

Checklist:

If user exposed functionality or configuration variables are added/changed:

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

def test_turn_on_without_entities(self):
"""Test turn_on method without entities."""
runs = []
self.hass.services.register(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use the mock service register function in test common?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@MartinHjelmare
Copy link
Member

Looks good! One comment/question.

@balloob balloob force-pushed the reload-customize branch from 55d2784 to dd59061 Compare June 22, 2016 15:43
@balloob
Copy link
Member Author

balloob commented Jun 22, 2016

Thanks for the code review. But, no 🐬 ??

@balloob balloob force-pushed the reload-customize branch from dd59061 to e91cc81 Compare June 22, 2016 15:52
@balloob balloob force-pushed the reload-customize branch from e91cc81 to f069d6a Compare June 22, 2016 15:57
@balloob balloob merged commit a70f922 into dev Jun 22, 2016
@balloob balloob deleted the reload-customize branch June 22, 2016 16:13
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants