Skip to content

Commit

Permalink
Fix device mode to allow schedule (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Sep 17, 2022
1 parent 0f3c9de commit 7bbb29c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/demetriek/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class DeviceMode(str, Enum):
AUTO = "auto"
KIOSK = "kiosk"
MANUAL = "manual"
SCHEDULE = "schedule"


class DeviceState(str, Enum):
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/device2.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"width": 37
},
"id": "12345",
"mode": "auto",
"mode": "schedule",
"model": "LM 37X8",
"name": "Frenck's LaMetric",
"os_version": "2.2.2",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def test_get_device2(aresponses: ResponsesMockServer) -> None:
assert device.device_id == "12345"
assert device.name == "Frenck's LaMetric"
assert device.os_version == "2.2.2"
assert device.mode is DeviceMode.AUTO
assert device.mode is DeviceMode.SCHEDULE
assert device.model == "LM 37X8"
assert device.audio.volume == 100
assert device.audio.volume_range
Expand Down

0 comments on commit 7bbb29c

Please sign in to comment.