mirror of
https://github.com/home-assistant/core.git
synced 2025-05-21 22:37:07 +00:00

* Add uptime sensor to Glances * Merge upstream * Merge upstream * Fix coverage * Add uptime sensor to Glances * Merge upstream * Merge upstream * Fix coverage * Move most uptime specific code to DataUpdateCoordinator * Add last_reported after merge with upstream * Add unit tests for uptime sensor * Add unit tests for uptime sensor * Add unit tests for uptime sensor * Add unit tests for uptime sensor * Move update code out of getter native_value() * Add unit tests for uptime sensor * Update uptime method signatures * Set uptime icon in icons.json * Use freezer.tick for uptime tests * Frozen time test fails on github * Add MIN_UPTIME_VARIATION const value * Only update uptime on startup or when remote server restarts * Fix for 0 values * Set value to None to set state to Unknown if key is not found * Add unit test for uptime change * Code reduction --------- Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: G Johansson <goran.johansson@shiftit.se>