mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-14 20:56:30 +00:00
Skip watchdog API test on landingpage (#4588)
* Skip watchdog API test on landingpage * Skip check from task
This commit is contained in:
parent
36d48d19fc
commit
0cd7bd47bb
@ -7,6 +7,7 @@ from ..addons.const import ADDON_UPDATE_CONDITIONS
|
|||||||
from ..const import AddonState
|
from ..const import AddonState
|
||||||
from ..coresys import CoreSysAttributes
|
from ..coresys import CoreSysAttributes
|
||||||
from ..exceptions import AddonsError, HomeAssistantError, ObserverError
|
from ..exceptions import AddonsError, HomeAssistantError, ObserverError
|
||||||
|
from ..homeassistant.const import LANDINGPAGE
|
||||||
from ..jobs.decorator import Job, JobCondition
|
from ..jobs.decorator import Job, JobCondition
|
||||||
from ..plugins.const import PLUGIN_UPDATE_CONDITIONS
|
from ..plugins.const import PLUGIN_UPDATE_CONDITIONS
|
||||||
from ..utils.sentry import capture_exception
|
from ..utils.sentry import capture_exception
|
||||||
@ -142,6 +143,9 @@ class Tasks(CoreSysAttributes):
|
|||||||
if self.sys_homeassistant.error_state:
|
if self.sys_homeassistant.error_state:
|
||||||
# Home Assistant is in an error state, this is handled by the rollback feature
|
# Home Assistant is in an error state, this is handled by the rollback feature
|
||||||
return
|
return
|
||||||
|
if self.sys_homeassistant.version == LANDINGPAGE:
|
||||||
|
# Skip watchdog for landingpage
|
||||||
|
return
|
||||||
if not await self.sys_homeassistant.core.is_running():
|
if not await self.sys_homeassistant.core.is_running():
|
||||||
# The home assistant container is not running
|
# The home assistant container is not running
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user