From a252065f99c63b84a0211be423ddb4b56a807f26 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Wed, 29 May 2019 09:09:25 -0700 Subject: [PATCH] Fix calling notify.notify with mobile_app targets in play. Fixes #24064 (#24156) --- homeassistant/components/mobile_app/notify.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/mobile_app/notify.py b/homeassistant/components/mobile_app/notify.py index 721751e69a8..e10ebf13c4c 100644 --- a/homeassistant/components/mobile_app/notify.py +++ b/homeassistant/components/mobile_app/notify.py @@ -89,13 +89,12 @@ class MobileAppNotificationService(BaseNotificationService): targets = kwargs.get(ATTR_TARGET) if not targets: - targets = push_registrations(self.hass) + targets = push_registrations(self.hass).values() if kwargs.get(ATTR_DATA) is not None: data[ATTR_DATA] = kwargs.get(ATTR_DATA) for target in targets: - entry = self.hass.data[DOMAIN][DATA_CONFIG_ENTRIES][target] entry_data = entry.data