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

Speed up sensor details screen #997

Merged
merged 1 commit into from Oct 1, 2020

Conversation

dshokouhi
Copy link
Member

  • On sensor details screen refresh data every 5 seconds instead of 10 to make it update faster for settings
  • After user changes any setting we force the sensor to do an update immediately in onPreferenceChangeListener so the next refresh pulls correct data as sometimes we have to wait for the second update for the change to really take place.

These should make the page feel like it updates a lot faster than what it does today since at times there can be a 10-20 second delay depending on when you change a setting and when the last update ran.

@JBassett JBassett merged commit ebf18b4 into home-assistant:master Oct 1, 2020
@dshokouhi dshokouhi deleted the sensor_detail_speed branch October 3, 2020 07:11
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.

None yet

3 participants