mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 19:16:29 +00:00
fix selecter
This commit is contained in:
parent
1c0d63a02e
commit
2b2f3214e9
@ -264,6 +264,6 @@ class CoreSysAttributes:
|
||||
|
||||
def __getattr__(self, name):
|
||||
"""Mapping to coresys."""
|
||||
if name.startswith("sys_") and hasattr(self.coresys, name[5:]):
|
||||
return getattr(self.coresys, name[5:])
|
||||
if name.startswith("sys_") and hasattr(self.coresys, name[4:]):
|
||||
return getattr(self.coresys, name[4:])
|
||||
raise AttributeError()
|
||||
|
Loading…
x
Reference in New Issue
Block a user