Fix ESPHome stacktraces when removing entity and shutting down (#28185)
This commit is contained in:
1 parent
b61218f90e
commit
322d8c2dd5
2 files changed
+25
-2
No files matched your search
@@ -56,6 +56,13 @@ class RuntimeEntryData:
|
||||
reconnect_task = attr.ib(type=Optional[asyncio.Task], default=None)
|
||||
state = attr.ib(type=Dict[str, Dict[str, Any]], factory=dict)
|
||||
info = attr.ib(type=Dict[str, Dict[str, Any]], factory=dict)
|
||||
|
||||
# A second list of EntityInfo objects
|
||||
# This is necessary for when an entity is being removed. HA requires
|
||||
# some static info to be accessible during removal (unique_id, maybe others)
|
||||
# If an entity can't find anything in the info array, it will look for info here.
|
||||
old_info = attr.ib(type=Dict[str, Dict[str, Any]], factory=dict)
|
||||
|
||||
services = attr.ib(type=Dict[int, "UserService"], factory=dict)
|
||||
available = attr.ib(type=bool, default=False)
|
||||
device_info = attr.ib(type=DeviceInfo, default=None)
|
||||
|
||||
Reference in new issue
Block a user