Update UniFi Protect to use MAC address for unique ID (#73508)

This commit is contained in:
Christopher Bailey 2022-06-19 10:22:33 -04:00 committed by GitHub
parent 7714183118
commit b19b6ec6ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 266 additions and 91 deletions

View file

@ -46,7 +46,7 @@ async def test_reboot_button(
mock_entry.api.reboot_device = AsyncMock()
unique_id = f"{chime.id}_reboot"
unique_id = f"{chime.mac}_reboot"
entity_id = "button.test_chime_reboot_device"
entity_registry = er.async_get(hass)
@ -75,7 +75,7 @@ async def test_chime_button(
mock_entry.api.play_speaker = AsyncMock()
unique_id = f"{chime.id}_play"
unique_id = f"{chime.mac}_play"
entity_id = "button.test_chime_play_chime"
entity_registry = er.async_get(hass)