Fix flaky group notify test (#4212)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2016-11-03 22:56:55 -07:00
1 parent 4cc417677e
commit 18e965c3cd
2 files changed
+23 -37

No files matched your search

+2 -1
View File
@@ -5,6 +5,7 @@ For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/notify.group/
"""
import collections
from copy import deepcopy
import logging
import voluptuous as vol
@@ -56,7 +57,7 @@ class GroupNotifyPlatform(BaseNotificationService):
payload.update({key: val for key, val in kwargs.items() if val})
for entity in self.entities:
sending_payload = payload.copy()
sending_payload = deepcopy(payload.copy())
if entity.get(ATTR_DATA) is not None:
update(sending_payload, entity.get(ATTR_DATA))
self.hass.services.call(DOMAIN, entity.get(ATTR_SERVICE),