Notify: Only attach target if in call data (#3831)
* Only pass through the target if it has a value * Target will no longer be none
This commit is contained in:
1 parent
e135691bd6
commit
d302dbec2d
2 files changed
+1
-4
No files matched your search
@@ -101,7 +101,7 @@ def setup(hass, config):
|
||||
|
||||
if targets.get(call.service) is not None:
|
||||
kwargs[ATTR_TARGET] = [targets[call.service]]
|
||||
else:
|
||||
elif call.data.get(ATTR_TARGET) is not None:
|
||||
kwargs[ATTR_TARGET] = call.data.get(ATTR_TARGET)
|
||||
|
||||
message.hass = hass
|
||||
|
||||
Reference in new issue
Block a user