Skip to content

Commit

Permalink
Merge pull request #94 from iMicknl/fix-api
Browse files Browse the repository at this point in the history
fix api for missing states at login
  • Loading branch information
vlebourl authored Jul 1, 2020
2 parents 7776510 + 5f51be4 commit c07dabe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions custom_components/tahoma/tahoma_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c07dabe

Please sign in to comment.