From 5f51be425b55e212d824fc8be5fa2e183065ca5b Mon Sep 17 00:00:00 2001 From: Vincent Le Bourlot Date: Wed, 1 Jul 2020 12:18:05 +0200 Subject: [PATCH] fix api for missing states at login --- custom_components/tahoma/tahoma_api.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/custom_components/tahoma/tahoma_api.py b/custom_components/tahoma/tahoma_api.py index 454c7637f..5a21a81bc 100644 --- a/custom_components/tahoma/tahoma_api.py +++ b/custom_components/tahoma/tahoma_api.py @@ -627,12 +627,7 @@ def __init__(self, protocol, dataInput): for state in dataInput["states"]: if state["name"] not in self.state_definitions: - raise ValueError( - "Active state '" - + state["name"] - + "' has not been defined: " - + debug_output - ) + self.state_definitions.append(state["name"]) if state["name"] in self.__active_states.keys(): raise ValueError(