Skip to content

Commit

Permalink
Make is_on optional
Browse files Browse the repository at this point in the history
The is_on function is unavailable on some remotes/controllers, which causes Pydantic to crash the app.
  • Loading branch information
Sikerdebaard authored Jul 13, 2024
1 parent 956e308 commit 14364ae
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: bool = None
battery_percentage: Optional[int] = None
switch_label: Optional[str] = None

Expand Down

0 comments on commit 14364ae

Please sign in to comment.