Skip to content

Commit 6475dff

Browse files
committed
Fix typing bug in homeassistant info model
1 parent 247900f commit 6475dff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

aiohasupervisor/models/homeassistant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class HomeAssistantInfo(ResponseData):
2323
port: int
2424
ssl: bool
2525
watchdog: bool
26-
audio_input: str
27-
audio_output: str
26+
audio_input: str | None
27+
audio_output: str | None
2828
backups_exclude_database: bool
2929

3030

tests/test_homeassistant.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ async def test_homeassistant_info(
3535
assert info.arch == "aarch64"
3636
assert info.ssl is False
3737
assert info.port == 8123
38+
assert info.audio_input is None
3839
assert info.audio_output is None
3940
assert info.ip_address == IPv4Address("172.30.32.1")
4041

0 commit comments

Comments
 (0)