diff --git a/custom_components/tahoma/tahoma_api.py b/custom_components/tahoma/tahoma_api.py index 183d9207c..955b520aa 100644 --- a/custom_components/tahoma/tahoma_api.py +++ b/custom_components/tahoma/tahoma_api.py @@ -650,7 +650,7 @@ def active_states(self): def set_active_state(self, name, value): """Set active state.""" if name not in self.__active_states.keys(): - raise ValueError("Can not set unknown state '" + name + "'") + self.__active_states[name] = value if (isinstance(self.__active_states[name], int) and isinstance(value, str)):