1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Fix state overwrite race condition where two platforms request the same entity_id (#42151)

* Fix state overwrite race condition where two platforms request the same entity id

* fix test

* create reservations instead

* revert

* cannot use __slots__ because we patch async_all
This commit is contained in:
J. Nick Koston
2020-10-21 10:01:51 -05:00
committed by GitHub
parent bb641c23a9
commit df2ede6522
7 changed files with 119 additions and 8 deletions

View File

@@ -355,6 +355,9 @@ ATTR_STATE = "state"
ATTR_EDITABLE = "editable"
ATTR_OPTION = "option"
# The entity has been restored with restore state
ATTR_RESTORED = "restored"
# Bitfield of supported component features for the entity
ATTR_SUPPORTED_FEATURES = "supported_features"