mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix empty data attribute in sinch service call (#28253)
* Fix empty data attribute in sinch service call * Simplified the PR as per @MartinHjelmare`s request.
This commit is contained in:
parent
c76f768a82
commit
c538d899a2
@ -61,7 +61,7 @@ class SinchNotificationService(BaseNotificationService):
|
|||||||
def send_message(self, message="", **kwargs):
|
def send_message(self, message="", **kwargs):
|
||||||
"""Send a message to a user."""
|
"""Send a message to a user."""
|
||||||
targets = kwargs.get(ATTR_TARGET, self.default_recipients)
|
targets = kwargs.get(ATTR_TARGET, self.default_recipients)
|
||||||
data = kwargs.get(ATTR_DATA, {})
|
data = kwargs.get(ATTR_DATA) or {}
|
||||||
|
|
||||||
clx_args = {ATTR_MESSAGE: message, ATTR_SENDER: self.sender}
|
clx_args = {ATTR_MESSAGE: message, ATTR_SENDER: self.sender}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user