mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Update IDs for rename node/value (#24646)
* Update IDs for rename node/value * Rename devices and entities * Improved coverage
This commit is contained in:
committed by
Paulus Schoutsen
parent
7f90a1cab2
commit
23dd644f4a
@@ -74,7 +74,7 @@ def node_name(node):
|
||||
return 'Unknown Node {}'.format(node.node_id)
|
||||
|
||||
|
||||
async def check_has_unique_id(entity, ready_callback, timeout_callback, loop):
|
||||
async def check_has_unique_id(entity, ready_callback, timeout_callback):
|
||||
"""Wait for entity to have unique_id."""
|
||||
start_time = dt_util.utcnow()
|
||||
while True:
|
||||
@@ -86,7 +86,7 @@ async def check_has_unique_id(entity, ready_callback, timeout_callback, loop):
|
||||
# Wait up to NODE_READY_WAIT_SECS seconds for unique_id to appear.
|
||||
timeout_callback(waited)
|
||||
return
|
||||
await asyncio.sleep(1, loop=loop)
|
||||
await asyncio.sleep(1)
|
||||
|
||||
|
||||
def is_node_parsed(node):
|
||||
|
||||
Reference in New Issue
Block a user