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

This commit is contained in:
Phil Bruckner authored and Paulus Schoutsen committed 2020-08-26 16:44:01 +00:00
1 parent 77107e4501
commit 8fa1a1f600
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(