From 0653f57fb41563385b141efcd2ffcfb60572042b Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Sun, 21 Jul 2019 12:57:40 -0400 Subject: [PATCH] change and condition to or condition (#25374) --- homeassistant/helpers/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index 762e6813b1d..f039cc315e3 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -433,7 +433,7 @@ class Entity: async def _async_registry_updated(self, event): """Handle entity registry update.""" data = event.data - if data['action'] != 'update' and data.get( + if data['action'] != 'update' or data.get( 'old_entity_id', data['entity_id']) != self.entity_id: return