Skip watchdog API test on landingpage (#4588)

* Skip watchdog API test on landingpage

* Skip check from task
This commit is contained in:
Mike Degatano 2023-09-29 09:17:22 -04:00 committed by GitHub
parent 36d48d19fc
commit 0cd7bd47bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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