From b5f8227ef9e913b30b59e38db05fe1ee83b5af8d Mon Sep 17 00:00:00 2001 From: Pergola Fabio Date: Fri, 19 Jan 2024 14:36:22 +0100 Subject: [PATCH] lowercase event --- 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 a8cddf1..c131f8b 100644 --- a/hikvision-doorbell/src/mqtt.py +++ b/hikvision-doorbell/src/mqtt.py @@ -341,7 +341,7 @@ async def update_door_entities(door_id: str, control_source: str): case _: """Generic event: create the device trigger entity according to the information inside the DEVICE_TRIGGERS_DEFINITIONS dict""" - logger.info("Video intercom event {} detected on {}", event_type.name, doorbell._config.name) + logger.info("Video intercom event {} detected on {}", event_type.name.lower(), doorbell._config.name) self.handle_device_trigger(doorbell, DEVICE_TRIGGERS_DEFINITIONS_EVENT[event_type]) @override @@ -414,7 +414,7 @@ async def video_intercom_alarm( case _: """Generic alarm: create the device trigger entity according to the information inside the DEVICE_TRIGGERS_DEFINITIONS dict""" - logger.info("Video intercom alarm {} detected on {}", alarm_type.name, doorbell._config.name) + logger.info("Video intercom alarm {} detected on {}", alarm_type.name.lower(), doorbell._config.name) self.handle_device_trigger(doorbell, DEVICE_TRIGGERS_DEFINITIONS[alarm_type]) @override