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:
Robbie Trencheny authored and Paulus Schoutsen committed 2016-10-11 20:33:41 -07:00
1 parent e135691bd6
commit d302dbec2d
2 files changed
+1 -4

No files matched your search

+1 -1
View File
@@ -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