mirror of
https://github.com/esphome/esphome.git
synced 2025-10-22 19:53:46 +01:00
fix flakey
This commit is contained in:
@@ -60,17 +60,16 @@ class InitialStateHelper:
|
|||||||
not_waiting = {
|
not_waiting = {
|
||||||
(e.device_id, e.key) for e in entities
|
(e.device_id, e.key) for e in entities
|
||||||
} - self._wait_initial_states
|
} - self._wait_initial_states
|
||||||
_LOGGER.debug(
|
if not_waiting:
|
||||||
"InitialStateHelper: NOT waiting for %d entities: %s",
|
not_waiting_info = [
|
||||||
len(not_waiting),
|
f"{type(self._entities_by_id[k]).__name__}:{self._entities_by_id[k].object_id}"
|
||||||
[
|
|
||||||
(
|
|
||||||
type(self._entities_by_id[k]).__name__,
|
|
||||||
self._entities_by_id[k].object_id,
|
|
||||||
)
|
|
||||||
for k in not_waiting
|
for k in not_waiting
|
||||||
],
|
]
|
||||||
)
|
_LOGGER.debug(
|
||||||
|
"InitialStateHelper: NOT waiting for %d entities: %s",
|
||||||
|
len(not_waiting),
|
||||||
|
not_waiting_info,
|
||||||
|
)
|
||||||
|
|
||||||
# Create future in the running event loop
|
# Create future in the running event loop
|
||||||
self._initial_states_received = asyncio.get_running_loop().create_future()
|
self._initial_states_received = asyncio.get_running_loop().create_future()
|
||||||
|
Reference in New Issue
Block a user