From f4ecd48af8e182f6c26c937bdc4c8e7f4d114e50 Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 3 Dec 2023 15:27:30 +0200 Subject: [PATCH] fix brigtness is not int https://github.com/diyhue/diyHue/issues/961 --- BridgeEmulator/HueObjects/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BridgeEmulator/HueObjects/__init__.py b/BridgeEmulator/HueObjects/__init__.py index de1b17bb3..a7d51f3cb 100644 --- a/BridgeEmulator/HueObjects/__init__.py +++ b/BridgeEmulator/HueObjects/__init__.py @@ -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"]