From c538d899a27ad008843e20350e7dc9864de483e5 Mon Sep 17 00:00:00 2001 From: Bendik Brenne Date: Tue, 26 Nov 2019 14:14:09 +0100 Subject: [PATCH] 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. --- homeassistant/components/sinch/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sinch/notify.py b/homeassistant/components/sinch/notify.py index 173873c0a6c..d7d1f242c67 100644 --- a/homeassistant/components/sinch/notify.py +++ b/homeassistant/components/sinch/notify.py @@ -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}