Improved thread safety

This commit is contained in:
2022-08-16 20:42:35 +00:00
parent ae9ffb65c1
commit 39f727206f
11 changed files with 82 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ async def async_setup_services(hass):
if target not in browsers:
continue
browser = browsers[target]
browser.send(service, **data)
hass.create_task(browser.send(service, **data))
def handle_service(call):
service = call.service