Skip to content

Commit

Permalink
lowercase event
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Jan 19, 2024
1 parent 7e5e4bb commit b5f8227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hikvision-doorbell/src/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b5f8227

Please sign in to comment.