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 a sensor for high accuracy update interval #2490

Merged

Conversation

dshokouhi
Copy link
Member

@dshokouhi dshokouhi commented Apr 28, 2022

Summary

Fixes: #2485 the state will update as soon as the value changes which takes place when the service is started or restarted

Screenshots

image

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#737

Any other notes

@jpelgrom
Copy link
Member

Wouldn't it make more sense for this to be an attribute for the existing 'high accuracy mode' sensor? That sensor tells you if it's enabled or not, the update interval is a detail for that state.

@dshokouhi
Copy link
Member Author

Wouldn't it make more sense for this to be an attribute for the existing 'high accuracy mode' sensor? That sensor tells you if it's enabled or not, the update interval is a detail for that state.

When high accuracy mode is enabled and the update interval changes we only call a restart and in this case the state will not change and the attribute value will not update. So I had opted to keep it separate to ensure the sensor is as up to date as possible.

@JBassett JBassett merged commit a4fc7b0 into home-assistant:master Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a sensor for high_accuracy_update_interval
4 participants