mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
change and condition to or condition (#25374)
This commit is contained in:
committed by
Paulus Schoutsen
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
|
||||
|
||||
|
Reference in New Issue
Block a user