mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Bump unifiprotect to 4.10.5 (#96486)
This commit is contained in:
parent
da9624de2f
commit
1865cd0805
@ -115,7 +115,7 @@ async def async_setup_entry(
|
|||||||
|
|
||||||
async def _add_new_device(device: ProtectAdoptableDeviceModel) -> None:
|
async def _add_new_device(device: ProtectAdoptableDeviceModel) -> None:
|
||||||
if not isinstance(device, UFPCamera):
|
if not isinstance(device, UFPCamera):
|
||||||
return
|
return # type: ignore[unreachable]
|
||||||
|
|
||||||
entities = _async_camera_entities(data, ufp_device=device)
|
entities = _async_camera_entities(data, ufp_device=device)
|
||||||
async_add_entities(entities)
|
async_add_entities(entities)
|
||||||
|
@ -227,7 +227,7 @@ class ProtectData:
|
|||||||
self._async_update_device(obj, message.changed_data)
|
self._async_update_device(obj, message.changed_data)
|
||||||
|
|
||||||
# trigger updates for camera that the event references
|
# trigger updates for camera that the event references
|
||||||
elif isinstance(obj, Event):
|
elif isinstance(obj, Event): # type: ignore[unreachable]
|
||||||
if obj.type in SMART_EVENTS:
|
if obj.type in SMART_EVENTS:
|
||||||
if obj.camera is not None:
|
if obj.camera is not None:
|
||||||
if obj.end is None:
|
if obj.end is None:
|
||||||
|
@ -272,7 +272,7 @@ class ProtectNVREntity(ProtectDeviceEntity):
|
|||||||
"""Base class for unifi protect entities."""
|
"""Base class for unifi protect entities."""
|
||||||
|
|
||||||
# separate subclass on purpose
|
# separate subclass on purpose
|
||||||
device: NVR # type: ignore[assignment]
|
device: NVR
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@ -281,7 +281,7 @@ class ProtectNVREntity(ProtectDeviceEntity):
|
|||||||
description: EntityDescription | None = None,
|
description: EntityDescription | None = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize the entity."""
|
"""Initialize the entity."""
|
||||||
super().__init__(entry, device, description) # type: ignore[arg-type]
|
super().__init__(entry, device, description)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def _async_set_device_info(self) -> None:
|
def _async_set_device_info(self) -> None:
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["pyunifiprotect", "unifi_discovery"],
|
"loggers": ["pyunifiprotect", "unifi_discovery"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["pyunifiprotect==4.10.3", "unifi-discovery==1.1.7"],
|
"requirements": ["pyunifiprotect==4.10.5", "unifi-discovery==1.1.7"],
|
||||||
"ssdp": [
|
"ssdp": [
|
||||||
{
|
{
|
||||||
"manufacturer": "Ubiquiti Networks",
|
"manufacturer": "Ubiquiti Networks",
|
||||||
|
@ -2186,7 +2186,7 @@ pytrafikverket==0.3.3
|
|||||||
pyudev==0.23.2
|
pyudev==0.23.2
|
||||||
|
|
||||||
# homeassistant.components.unifiprotect
|
# homeassistant.components.unifiprotect
|
||||||
pyunifiprotect==4.10.3
|
pyunifiprotect==4.10.5
|
||||||
|
|
||||||
# homeassistant.components.uptimerobot
|
# homeassistant.components.uptimerobot
|
||||||
pyuptimerobot==22.2.0
|
pyuptimerobot==22.2.0
|
||||||
|
@ -1603,7 +1603,7 @@ pytrafikverket==0.3.3
|
|||||||
pyudev==0.23.2
|
pyudev==0.23.2
|
||||||
|
|
||||||
# homeassistant.components.unifiprotect
|
# homeassistant.components.unifiprotect
|
||||||
pyunifiprotect==4.10.3
|
pyunifiprotect==4.10.5
|
||||||
|
|
||||||
# homeassistant.components.uptimerobot
|
# homeassistant.components.uptimerobot
|
||||||
pyuptimerobot==22.2.0
|
pyuptimerobot==22.2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user