Fix API watchdog never trigger (#2958)

This commit is contained in:
Pascal Vizeli
2021-06-14 14:11:22 +02:00
committed by GitHub
parent 4f9e646b4c
commit adf355e54f

View File

@@ -206,7 +206,7 @@ class Tasks(CoreSysAttributes):
"""
# If Home-Assistant is active
if (
not await self.sys_homeassistant.core.is_failed()
await self.sys_homeassistant.core.is_failed()
or not self.sys_homeassistant.watchdog
or self.sys_homeassistant.error_state
):