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

Manual updates #17278

Merged
merged 1 commit into from Oct 9, 2018

Conversation

Projects
None yet
4 participants
@balloob
Copy link
Member

commented Oct 9, 2018

Description:

After a discussion with the fine folks in #devs, we came to the conclusion that being able to trigger a manual update could be the solution to a lot of problems. Among others, we can adjust #17276 to leave template sensors in manual mode if their templates are not specific enough. Also sensors that are charged per API call could be made updating less frequent outside of times when it is needed (ie a travel sensor).

This introduces a new service homeassistant/update_entity. Calling it with { "entity_id": "light.kitchen" } will ensure that the light.kitchen entity is updated when the service call is done.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@balloob balloob requested a review from home-assistant/core as a code owner Oct 9, 2018

@wafflebot wafflebot bot added the in progress label Oct 9, 2018

@pvizeli

pvizeli approved these changes Oct 9, 2018

@balloob balloob referenced this pull request Oct 9, 2018

Closed

Add all EntityComponent instances to hass.data #17200

2 of 3 tasks complete

@pvizeli pvizeli merged commit e903f7f into dev Oct 9, 2018

6 checks passed

Hound No violations found. Woof!
WIP ready for review
Details
cla-bot Everyone involved has signed the CLA
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.006%) to 93.55%
Details

@wafflebot wafflebot bot removed the in progress label Oct 9, 2018

@pvizeli pvizeli deleted the manual-updates branch Oct 9, 2018

@bachya bachya added the Hacktoberfest label Oct 9, 2018

This was referenced Oct 23, 2018

@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.