Skip to content

Commit

Permalink
fix ha error: 'homeautomation' is not a valid LightMode
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea authored Mar 24, 2023
1 parent ce83f0c commit 455d30c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BridgeEmulator/HueObjects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,9 @@ def getV2Api(self):
result["id_v1"] = "/lights/" + self.id_v1
result["metadata"] = {"name": self.name,
"archetype": archetype[self.config["archetype"]]}
result["mode"] = self.state["mode"] if "mode" in self.state else "normal"
result["mode"] = "normal"
if "mode" in self.state and self.state["mode"] == "streaming":
result["mode"] = "streaming"
result["on"] = {
"on": self.state["on"]
}
Expand Down

0 comments on commit 455d30c

Please sign in to comment.