mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add configuration_url to deCONZ device when entry source is addon (#59598)
This commit is contained in:
@@ -179,7 +179,7 @@ async def test_gateway_setup(hass, aioclient_mock):
|
||||
assert gateway_entry.entry_type == "service"
|
||||
|
||||
|
||||
async def test_gateway_device_no_configuration_url_when_addon(hass, aioclient_mock):
|
||||
async def test_gateway_device_configuration_url_when_addon(hass, aioclient_mock):
|
||||
"""Successful setup."""
|
||||
with patch(
|
||||
"homeassistant.config_entries.ConfigEntries.async_forward_entry_setup",
|
||||
@@ -195,7 +195,9 @@ async def test_gateway_device_no_configuration_url_when_addon(hass, aioclient_mo
|
||||
identifiers={(DECONZ_DOMAIN, gateway.bridgeid)}
|
||||
)
|
||||
|
||||
assert not gateway_entry.configuration_url
|
||||
assert (
|
||||
gateway_entry.configuration_url == "homeassistant://hassio/ingress/core_deconz"
|
||||
)
|
||||
|
||||
|
||||
async def test_gateway_retry(hass):
|
||||
|
||||
Reference in New Issue
Block a user