mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Remove state when entity is removed from registry (#32184)
This commit is contained in:
parent
a6d5ed0160
commit
867630a4a7
@ -542,6 +542,7 @@ class Entity(ABC):
|
||||
data = event.data
|
||||
if data["action"] == "remove" and data["entity_id"] == self.entity_id:
|
||||
await self.async_removed_from_registry()
|
||||
await self.async_remove()
|
||||
|
||||
if (
|
||||
data["action"] != "update"
|
||||
|
Loading…
x
Reference in New Issue
Block a user