diff --git a/homeassistant/components/reolink/binary_sensor.py b/homeassistant/components/reolink/binary_sensor.py index 850aa110171..996f2c6b3ab 100644 --- a/homeassistant/components/reolink/binary_sensor.py +++ b/homeassistant/components/reolink/binary_sensor.py @@ -5,6 +5,7 @@ from collections.abc import Callable from dataclasses import dataclass from reolink_aio.api import ( + DUAL_LENS_DUAL_MOTION_MODELS, FACE_DETECTION_TYPE, PERSON_DETECTION_TYPE, PET_DETECTION_TYPE, @@ -128,6 +129,9 @@ class ReolinkBinarySensorEntity(ReolinkChannelCoordinatorEntity, BinarySensorEnt super().__init__(reolink_data, channel) self.entity_description = entity_description + if self._host.api.model in DUAL_LENS_DUAL_MOTION_MODELS: + self._attr_name = f"{entity_description.name} lens {self._channel}" + self._attr_unique_id = ( f"{self._host.unique_id}_{self._channel}_{entity_description.key}" ) diff --git a/homeassistant/components/reolink/host.py b/homeassistant/components/reolink/host.py index feeff9312c7..a679cb34f4b 100644 --- a/homeassistant/components/reolink/host.py +++ b/homeassistant/components/reolink/host.py @@ -163,7 +163,7 @@ class ReolinkHost: else: _LOGGER.debug( "Camera model %s most likely does not push its initial state" - "upon ONVIF subscription, do not check", + " upon ONVIF subscription, do not check", self._api.model, ) self._cancel_onvif_check = async_call_later( diff --git a/homeassistant/components/reolink/manifest.json b/homeassistant/components/reolink/manifest.json index fa61f873cca..f350bb4f948 100644 --- a/homeassistant/components/reolink/manifest.json +++ b/homeassistant/components/reolink/manifest.json @@ -18,5 +18,5 @@ "documentation": "https://www.home-assistant.io/integrations/reolink", "iot_class": "local_push", "loggers": ["reolink_aio"], - "requirements": ["reolink-aio==0.7.6"] + "requirements": ["reolink-aio==0.7.7"] } diff --git a/requirements_all.txt b/requirements_all.txt index da09cbde9be..ef6f4af565c 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2284,7 +2284,7 @@ renault-api==0.1.13 renson-endura-delta==1.5.0 # homeassistant.components.reolink -reolink-aio==0.7.6 +reolink-aio==0.7.7 # homeassistant.components.idteck_prox rfk101py==0.0.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 10fd8af6ce6..ca1951057fb 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1677,7 +1677,7 @@ renault-api==0.1.13 renson-endura-delta==1.5.0 # homeassistant.components.reolink -reolink-aio==0.7.6 +reolink-aio==0.7.7 # homeassistant.components.rflink rflink==0.0.65