diff --git a/homeassistant/components/unifi/controller.py b/homeassistant/components/unifi/controller.py index 60507d5a8c6..6ac4e622736 100644 --- a/homeassistant/components/unifi/controller.py +++ b/homeassistant/components/unifi/controller.py @@ -345,7 +345,6 @@ class UniFiController: device_registry.async_get_or_create( config_entry_id=self.config_entry.entry_id, - configuration_url=self.api.url, connections={(CONNECTION_NETWORK_MAC, self.mac)}, default_manufacturer=ATTR_MANUFACTURER, default_model="UniFi Network", diff --git a/tests/components/unifi/test_controller.py b/tests/components/unifi/test_controller.py index e3efaef915b..d0f387a3c6c 100644 --- a/tests/components/unifi/test_controller.py +++ b/tests/components/unifi/test_controller.py @@ -261,8 +261,7 @@ async def test_controller_mac( config_entry_id=config_entry.entry_id, connections={(CONNECTION_NETWORK_MAC, controller.mac)}, ) - - assert device_entry.configuration_url == controller.api.url + assert device_entry async def test_controller_not_accessible(hass: HomeAssistant) -> None: