mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
parent
899b17e992
commit
7c790dbbd9
@ -112,13 +112,13 @@ class HassOS(CoreSysAttributes):
|
|||||||
async def load(self) -> None:
|
async def load(self) -> None:
|
||||||
"""Load HassOS data."""
|
"""Load HassOS data."""
|
||||||
try:
|
try:
|
||||||
if self.sys_host.info.cpe is None:
|
if not self.sys_host.info.cpe:
|
||||||
raise TypeError()
|
raise NotImplementedError()
|
||||||
cpe = CPE(self.sys_host.info.cpe)
|
|
||||||
|
|
||||||
|
cpe = CPE(self.sys_host.info.cpe)
|
||||||
if cpe.get_product()[0] != "hassos":
|
if cpe.get_product()[0] != "hassos":
|
||||||
raise TypeError()
|
raise NotImplementedError()
|
||||||
except TypeError:
|
except NotImplementedError:
|
||||||
_LOGGER.debug("Found no HassOS")
|
_LOGGER.debug("Found no HassOS")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user