Correct unifi device info (#96483)

This commit is contained in:
Erik Montnemery 2023-07-13 18:14:31 +02:00 committed by GitHub
parent 025ed3868d
commit fbbdebee47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -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",

View File

@ -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: