From 2b2f3214e99a937ab563322c23115d6bf9f26f57 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 25 Apr 2018 22:12:27 +0200 Subject: [PATCH] fix selecter --- hassio/coresys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hassio/coresys.py b/hassio/coresys.py index 494b38ac6..878f75555 100644 --- a/hassio/coresys.py +++ b/hassio/coresys.py @@ -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()