From 297e57befc7d5d030839a8c0f506b5d551813a6d Mon Sep 17 00:00:00 2001 From: Sanjoy Ghosh Date: Mon, 2 Sep 2024 19:11:04 +0530 Subject: [PATCH] Update controller.py (#86) 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