From fbbdebee47620b00ff3c200d2d7dea9d0c340ebd Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 13 Jul 2023 18:14:31 +0200 Subject: [PATCH] Correct unifi device info (#96483) --- homeassistant/components/unifi/controller.py | 1 - tests/components/unifi/test_controller.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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: