Skip to content

Commit

Permalink
Fix empty data attribute in sinch service call (#28253)
Browse files Browse the repository at this point in the history
* Fix empty data attribute in sinch service call

* Simplified the PR as per @MartinHjelmare`s request.
  • Loading branch information
bendikrb authored and MartinHjelmare committed Nov 26, 2019
1 parent c76f768 commit c538d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/sinch/notify.py
Expand Up @@ -61,7 +61,7 @@ def __init__(self, config):
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}

Expand Down

0 comments on commit c538d89

Please sign in to comment.