Skip to content

Commit

Permalink
Update controller.py (#86)
Browse files Browse the repository at this point in the history
Making is_on optional. New shortcut controllers from IKEA with the same deviceType as "controller" do not have isOn attribute in the JSON
  • Loading branch information
sanjoyg authored Sep 2, 2024
1 parent 36bd352 commit 297e57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dirigera/devices/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 297e57b

Please sign in to comment.