mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
change and condition to or condition (#25374)
This commit is contained in:
parent
aa27e22b17
commit
0653f57fb4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user