mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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):
|
async def _async_registry_updated(self, event):
|
||||||
"""Handle entity registry update."""
|
"""Handle entity registry update."""
|
||||||
data = event.data
|
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:
|
'old_entity_id', data['entity_id']) != self.entity_id:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user