Skip to content

Commit

Permalink
fix #961
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea authored Jan 19, 2024
1 parent dbddc13 commit 76736de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BridgeEmulator/HueObjects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def getV1Api(self):
result["config"] = self.config
result["state"] = {"on": self.state["on"]}
if "bri" in self.state and self.modelid not in ["LOM001", "LOM004", "LOM010"]:
result["state"]["bri"] = int(self.state["bri"])
result["state"]["bri"] = int(self.state["bri"]) if self.state["bri"] is not None else 1
if "ct" in self.state and self.modelid not in ["LOM001", "LOM004", "LOM010", "LTW001"]:
result["state"]["ct"] = self.state["ct"]
result["state"]["colormode"] = self.state["colormode"]
Expand Down

0 comments on commit 76736de

Please sign in to comment.