mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Correct unifi device info (#96483)
This commit is contained in:
parent
025ed3868d
commit
fbbdebee47
@ -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",
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user