Bump pyunifiprotect to 4.8.3 (#92251)

This commit is contained in:
J. Nick Koston 2023-04-29 11:59:44 -05:00 committed by GitHub
parent d23bd2ad68
commit 11131070ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@
"iot_class": "local_push",
"loggers": ["pyunifiprotect", "unifi_discovery"],
"quality_scale": "platinum",
"requirements": ["pyunifiprotect==4.8.2", "unifi-discovery==1.1.7"],
"requirements": ["pyunifiprotect==4.8.3", "unifi-discovery==1.1.7"],
"ssdp": [
{
"manufacturer": "Ubiquiti Networks",

View File

@ -161,8 +161,9 @@ async def set_chime_paired_doorbells(hass: HomeAssistant, call: ServiceCall) ->
camera = instance.bootstrap.get_device_from_mac(doorbell_mac)
assert camera is not None
doorbell_ids.add(camera.id)
data_before_changed = chime.dict_with_excludes()
chime.camera_ids = sorted(doorbell_ids)
await chime.save_device()
await chime.save_device(data_before_changed)
def async_setup_services(hass: HomeAssistant) -> None:

View File

@ -2149,7 +2149,7 @@ pytrafikverket==0.2.3
pyudev==0.23.2
# homeassistant.components.unifiprotect
pyunifiprotect==4.8.2
pyunifiprotect==4.8.3
# homeassistant.components.uptimerobot
pyuptimerobot==22.2.0

View File

@ -1554,7 +1554,7 @@ pytrafikverket==0.2.3
pyudev==0.23.2
# homeassistant.components.unifiprotect
pyunifiprotect==4.8.2
pyunifiprotect==4.8.3
# homeassistant.components.uptimerobot
pyuptimerobot==22.2.0

View File

@ -150,7 +150,6 @@ def add_device(
if regenerate_ids:
regenerate_device_ids(device)
device._initial_data = device.dict()
devices = getattr(bootstrap, f"{device.model.value}s")
devices[device.id] = device