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

Schedule devices update right after it's added #53

Merged
merged 2 commits into from
Jun 15, 2020

Conversation

vlebourl
Copy link
Collaborator

Update the sensors right after it's been added instead of waiting 1 min for the standard update.

Update the sensors right after it's been added instead of waiting 1 min for the standard update.
@@ -45,6 +45,10 @@ def __init__(self, tahoma_device, controller):

super().__init__(tahoma_device, controller)

async def async_added_to_hass(self):
Copy link
Owner

Choose a reason for hiding this comment

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

Is this something that should be added to the TahomaDevice class maybe? It looks like this is also an issue for the light.py and cover.py integrations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Haven't tested it on other devices than sensors but it would make sense.

@vlebourl vlebourl changed the title Schedule sensor update right after it's added Schedule devices update right after it's added Jun 15, 2020
@iMicknl iMicknl merged commit 7f16162 into master Jun 15, 2020
@iMicknl iMicknl deleted the schedule-sensor-update branch June 15, 2020 19:30
@vlebourl vlebourl added the enhancement New feature or request label Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants