mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Remove state when entity is removed from registry (#32184)
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user