implement some local templates

This commit is contained in:
joBr99
2023-11-24 16:34:14 +01:00
parent 7fb347063c
commit c49f214bec
6 changed files with 45 additions and 10 deletions

View File

@@ -193,7 +193,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
mustend = time.time() + 0.2
mustend = time.time() + 0.4
while time.time() < mustend:
if response_buffer[call_id] == True:
#print(f'loooooooooop {time.time()}')