Use event loop scheduling for tracking time patterns (#38021)
* Use event loop scheduling for tracking time patterns * make patching of time targetable * patch time tests since time can tick to match during the test * fix more tests * time can only move forward * time can only move forward * back to 100% coverage * simplify since the event loop time cannot move backwards * simplify some more * revert simplify * Revert "revert simplify" This reverts commit bd42f232f6f4e0876fbfe7ce5abf363779761acd. * Revert "simplify some more" This reverts commit 2a6c57d51487d4fc85140033a5cadbc800e61287. * Revert "simplify since the event loop time cannot move backwards" This reverts commit 3b13714ef489b5c5661ae0254b12f137d047fc26. * Attempt another simplify * time does not move backwards in the last two * remove next_time <= now check * fix previous merge error
This commit is contained in:
1 parent
7bc8caca96
commit
60009ec2f9
9 files changed
+404
-199
No files matched your search
@@ -119,7 +119,7 @@ async def test_erronous_network_key_fails_validation(hass, mock_openzwave):
|
||||
zwave.CONFIG_SCHEMA({"zwave": {"network_key": value}})
|
||||
|
||||
|
||||
async def test_auto_heal_midnight(hass, mock_openzwave):
|
||||
async def test_auto_heal_midnight(hass, mock_openzwave, legacy_patchable_time):
|
||||
"""Test network auto-heal at midnight."""
|
||||
await async_setup_component(hass, "zwave", {"zwave": {"autoheal": True}})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in new issue
Block a user