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
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class SinchNotificationService(BaseNotificationService):
|
|||
def send_message(self, message="", **kwargs):
|
||||
"""Send a message to a user."""
|
||||
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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue