Fix async_fire_time_changed in tests/common.py (#38705)

This commit is contained in:
Phil Bruckner authored and GitHub committed 2020-08-09 22:26:35 -05:00
1 parent 9bb7b3b125
commit 4c8c8a8c99
1 file changed
+1 -1
+1 -1
View File
@@ -295,8 +295,8 @@ def async_fire_time_changed(hass, datetime_, fire_all=False):
if task.cancelled():
continue
future_seconds = task.when() - hass.loop.time()
mock_seconds_into_future = datetime_.timestamp() - time.time()
future_seconds = task.when() - hass.loop.time()
if fire_all or mock_seconds_into_future >= future_seconds:
with patch(