mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix: EntityComponent deadlock when adding new devices during update state
This commit is contained in:
parent
35411cd57e
commit
2650d235ea
@ -39,7 +39,8 @@ class EntityComponent(object):
|
|||||||
self.is_polling = False
|
self.is_polling = False
|
||||||
|
|
||||||
self.config = None
|
self.config = None
|
||||||
self.lock = Lock()
|
# Because updating state might cause an entity to be found
|
||||||
|
self.lock = RLock()
|
||||||
|
|
||||||
def setup(self, config):
|
def setup(self, config):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user