fix: the driver names itself Home Assistant OS #3

Merged
christianmanivong merged 1 commits from fix/type-label into main 2026-12-03 07:35:04 +00:00
3 changed files with 4 additions and 1 deletions

No files matched your search

+1
View File
@@ -16,3 +16,4 @@ All notable changes to this driver. The format follows
add-on or switch its start at boot, refresh the update information, reboot and
shut down the host.
- Discovery: Home Assistant's web page on port 8123.
- Type label `Home Assistant OS`, so a driver picker names it.
+2
View File
@@ -101,6 +101,8 @@ class HomeAssistantDriver(RunningBackupsMixin, OSDriver):
VENDOR = VENDOR
DRIVER_NAME = "homeassistant"
#: Its own name in a driver picker: "OS" alone does not say which.
TYPE_LABEL = "Home Assistant OS"
USES_SSH = False
#: Home Assistant OS boots and starts Core before the API answers again.
REBOOT_SETTLE_SECONDS = 180
+1 -1
View File
@@ -28,7 +28,7 @@ def test_metadata() -> None:
assert HomeAssistantDriver.DRIVER_NAME == "homeassistant"
assert HomeAssistantDriver.VENDOR == "Home Assistant"
assert HomeAssistantDriver.ROLE == "linux"
assert HomeAssistantDriver.TYPE_LABEL == "OS"
assert HomeAssistantDriver.TYPE_LABEL == "Home Assistant OS"
assert HomeAssistantDriver.USES_SSH is False
assert HomeAssistantDriver.default_port == 8123
assert any(rule.mandatory for rule in HomeAssistantDriver.HTTP_FINGERPRINT)