* call entity state update calls in one executer task
* remove not needed wrapping
* mark as "non-public" method
* add guard against changes on _entity_update_functions
* Ensure coverage entries are sorted
* Use autofix
* Adjust
* Add comment to coverage file
* test CI
* revert CI test
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* 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>
* Re-organize conversation integration
* Clean up 2 more imports
* Re-export models
* Fix imports
* Uno mas
* Rename agents to models
* Fix cast test that i broke?
* Just blocking till I'm done
* Wrong place
* Fix late load of anyio doing blocking I/O in the event loop
httpx loads anyio which loads the asyncio backend in the event loop
as soon as httpx makes the first request
* tweak
* Mark executor jobs as background unless created from a tracked task
If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.
Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown
* import exec has the same issue
* Avoid tracking import executor jobs
There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs
* fix xiaomi_miio
* lots of fire time changed without background await
* revert changes moved to other PR
* more
* more
* more
* m
* m
* p
* fix fire and forget tests
* scrape
* sonos
* system
* more
* capture callback before block
* coverage
* more
* more races
* more races
* more
* missed some
* more fixes
* missed some more
* fix
* remove unneeded
* one more race
* two