fix: the driver names itself Home Assistant OS #3
No files matched your search
@@ -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.
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user