1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add support for device configuration URL to Axis devices (#58176)

This commit is contained in:
Robert Svensson
2021-10-22 11:09:50 +02:00
committed by GitHub
parent 038158508c
commit 281adfe3c9
2 changed files with 9 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ from homeassistant.const import (
STATE_ON,
STATE_UNAVAILABLE,
)
from homeassistant.helpers import device_registry as dr
from tests.common import MockConfigEntry, async_fire_mqtt_message
@@ -323,6 +324,13 @@ async def test_device_setup(hass):
assert device.name == ENTRY_CONFIG[CONF_NAME]
assert device.unique_id == FORMATTED_MAC
device_registry = dr.async_get(hass)
device_entry = device_registry.async_get_device(
identifiers={(AXIS_DOMAIN, device.unique_id)}
)
assert device_entry.configuration_url == device.api.config.url
async def test_device_info(hass):
"""Verify other path of device information works."""