mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix telegram bot thread_id key error (#120613)
This commit is contained in:
parent
7d5d81b229
commit
bea6fe30b8
@ -702,7 +702,7 @@ class TelegramNotificationService:
|
|||||||
}
|
}
|
||||||
if message_tag is not None:
|
if message_tag is not None:
|
||||||
event_data[ATTR_MESSAGE_TAG] = message_tag
|
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[
|
event_data[ATTR_MESSAGE_THREAD_ID] = kwargs_msg[
|
||||||
ATTR_MESSAGE_THREAD_ID
|
ATTR_MESSAGE_THREAD_ID
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user