From c7fa06a7db9d06f5eea3002a56c4f027610d3228 Mon Sep 17 00:00:00 2001 From: Pergola Fabio Date: Fri, 17 Mar 2023 13:40:56 +0100 Subject: [PATCH] Remove callsensor for indoor --- hikvision-doorbell/src/mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hikvision-doorbell/src/mqtt.py b/hikvision-doorbell/src/mqtt.py index a14de93..ff3d752 100644 --- a/hikvision-doorbell/src/mqtt.py +++ b/hikvision-doorbell/src/mqtt.py @@ -99,8 +99,6 @@ def __init__(self, config: AppConfig.MQTT, doorbells: Registry) -> None: ) # Create the sensors for each doorbell: for doorbell in doorbells.values(): - # Consider only outdoor units - logger.debug("Setting up entities for {}", doorbell._config.name) # Create an empty dict to hold the sensors @@ -111,6 +109,8 @@ def __init__(self, config: AppConfig.MQTT, doorbells: Registry) -> None: # Remove spaces and - from doorbell name sanitized_doorbell_name = sanitize_doorbell_name(doorbell_name) + + # No Callsensor for indoor if not doorbell._type is DeviceType.INDOOR: ##################