This commit is contained in:
joBr99
2023-12-15 14:29:31 +01:00
parent a5bfb9388f
commit 723be0735e
2 changed files with 3 additions and 3 deletions

View File

@@ -232,7 +232,7 @@ def execute_script(entity_name: str, domain: str, service: str, service_data: di
]
}
send_message(json.dumps(msg))
# busy waiting for response with a timeout of 0.2 seconds - maybe there's a better way of doing this
# busy waiting for response with a timeout of 0.4 seconds- maybe there's a better way of doing this
mustend = time.time() + 0.4
while time.time() < mustend:
if response_buffer[call_id] == True: