Skip to content

Commit 64bae18

Browse files
authored
Add country field to Supervisor info (#85)
Add the optional country field to the Supervisor info model.
1 parent 1527019 commit 64bae18

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

aiohasupervisor/models/supervisor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class SupervisorInfo(ResponseData):
2525
debug_block: bool
2626
diagnostics: bool | None
2727
auto_update: bool
28+
country: str | None
2829

2930

3031
@dataclass(frozen=True, slots=True)

tests/fixtures/supervisor_info.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"debug_block": false,
1616
"diagnostics": false,
1717
"auto_update": true,
18+
"country": null,
1819
"wait_boot": 5,
1920
"addons": [
2021
{

tests/test_supervisor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ async def test_supervisor_info(
4242
assert info.healthy is True
4343
assert info.logging == "info"
4444
assert info.ip_address == IPv4Address("172.30.32.2")
45+
assert info.country is None
4546

4647

4748
async def test_supervisor_stats(

0 commit comments

Comments
 (0)