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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user