From a717d6465a8073d8f810496f0132fe7e71b98f62 Mon Sep 17 00:00:00 2001 From: Sanjoy Ghosh Date: Mon, 2 Sep 2024 16:43:34 +0530 Subject: [PATCH] Update controller.py Making is_on optional. New shortcut controllers from IKEA with the same deviceType as "controller" do not have isOn attribute in the JSON --- src/dirigera/devices/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dirigera/devices/controller.py b/src/dirigera/devices/controller.py index 9519548..a6dc021 100644 --- a/src/dirigera/devices/controller.py +++ b/src/dirigera/devices/controller.py @@ -5,7 +5,7 @@ class ControllerAttributes(Attributes): - is_on: bool + is_on: Optional[bool] = None battery_percentage: Optional[int] = None switch_label: Optional[str] = None