1
0
mirror of https://github.com/home-assistant/core synced 2024-07-08 20:17:01 +00:00

Fix telegram bot thread_id key error (#120613)

This commit is contained in:
Luca Angemi 2024-06-26 23:45:47 +02:00 committed by GitHub
parent 6bceb8ec48
commit 1973c604b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -702,7 +702,7 @@ class TelegramNotificationService:
}
if message_tag is not None:
event_data[ATTR_MESSAGE_TAG] = message_tag
if kwargs_msg[ATTR_MESSAGE_THREAD_ID] is not None:
if kwargs_msg.get(ATTR_MESSAGE_THREAD_ID) is not None:
event_data[ATTR_MESSAGE_THREAD_ID] = kwargs_msg[
ATTR_MESSAGE_THREAD_ID
]