Skip to content

Commit

Permalink
change and condition to or condition (#25374)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey authored and balloob committed Jul 21, 2019
1 parent aa27e22 commit 0653f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/helpers/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ async def async_internal_will_remove_from_hass(self) -> None:
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

Expand Down

0 comments on commit 0653f57

Please sign in to comment.