mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix notify.slack service calls using data_template (#37980)
This commit is contained in:
parent
890562e3ae
commit
92d72f26c7
@ -224,7 +224,10 @@ class SlackNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
async def async_send_message(self, message, **kwargs):
|
async def async_send_message(self, message, **kwargs):
|
||||||
"""Send a message to Slack."""
|
"""Send a message to Slack."""
|
||||||
data = kwargs.get(ATTR_DATA, {})
|
data = kwargs.get(ATTR_DATA)
|
||||||
|
|
||||||
|
if data is None:
|
||||||
|
data = {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
DATA_SCHEMA(data)
|
DATA_SCHEMA(data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user