Skip to content

Commit

Permalink
fix brigtness is not int
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea committed Dec 3, 2023
1 parent a7feb33 commit f4ecd48
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 @@ -357,7 +357,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"] = self.state["bri"]
result["state"]["bri"] = int(self.state["bri"])
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 f4ecd48

Please sign in to comment.