Don't process hardware events when landing page is running (#5079)

This commit is contained in:
Stefan Agner 2024-05-15 08:56:37 +02:00 committed by GitHub
parent 6693b7c2e6
commit eac6070e12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,7 +48,7 @@ from ..utils import remove_folder
from ..utils.common import FileConfiguration
from ..utils.json import read_json_file, write_json_file
from .api import HomeAssistantAPI
from .const import ATTR_OVERRIDE_IMAGE, WSType
from .const import ATTR_OVERRIDE_IMAGE, LANDINGPAGE, WSType
from .core import HomeAssistantCore
from .secrets import HomeAssistantSecrets
from .validate import SCHEMA_HASS_CONFIG
@ -328,6 +328,7 @@ class HomeAssistant(FileConfiguration, CoreSysAttributes):
if (
not self.sys_hardware.policy.is_match_cgroup(PolicyGroup.UART, device)
or not self.version
or self.version == LANDINGPAGE
or self.version < "2021.9.0"
):
return