Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aiohasupervisor/models/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class SupervisorInfo(ResponseData):
debug_block: bool
diagnostics: bool | None
auto_update: bool
country: str | None


@dataclass(frozen=True, slots=True)
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/supervisor_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"debug_block": false,
"diagnostics": false,
"auto_update": true,
"country": null,
"wait_boot": 5,
"addons": [
{
Expand Down
1 change: 1 addition & 0 deletions tests/test_supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async def test_supervisor_info(
assert info.healthy is True
assert info.logging == "info"
assert info.ip_address == IPv4Address("172.30.32.2")
assert info.country is None


async def test_supervisor_stats(
Expand Down