core/tests/components/litterrobot
J. Nick Koston 9b157f974d
Reduce overhead to refire events from async_track_point_in_utc_time when an asyncio timer fires early (#73295)
* Reduce overhead to refire events

- asyncio timers can fire early for a varity of reasons including
  poor clock resolution and performance. To solve this problem
  we re-arm async_track_point_in_utc_time and try again later
  when this happens.

- On some platforms this means the async_track_point_in_utc_time can
  end up trying many times to prevent firing the timer early since as
  soon as it rearms it fires again and this repeats until we reach
  the appointed time. While there is not much we can do to prevent
  asyncio from firing the timer callback early, we can reduce the
  overhead when this happens by using avoiding creating datetime
  objects

* tweak mocking

* -vvv

* fix time freeze being too broad in litterrobot

* adjust
2022-06-14 07:46:00 -10:00
..
__init__.py
common.py
conftest.py Remove logic to mark litterrobot vacuum entity as unavailable (#73234) 2022-06-11 00:16:47 +03:00
test_button.py Reduce overhead to refire events from async_track_point_in_utc_time when an asyncio timer fires early (#73295) 2022-06-14 07:46:00 -10:00
test_config_flow.py
test_init.py
test_select.py Use new enums in litterrobot tests (#62515) 2021-12-22 10:00:24 +01:00
test_sensor.py Refactor litterrobot to use SensorEntityDescription (#71224) 2022-05-12 13:15:59 -05:00
test_switch.py Use new enums in litterrobot tests (#62515) 2021-12-22 10:00:24 +01:00
test_vacuum.py Remove logic to mark litterrobot vacuum entity as unavailable (#73234) 2022-06-11 00:16:47 +03:00