Fix async bug in amcrest when registering services (#31334)

This commit is contained in:
Phil Bruckner authored and Pascal Vizeli committed 2020-01-31 09:24:00 +00:00
1 parent 3635c4df50
commit a53c3d10fe
1 file changed
+1 -1
+1 -1
View File
@@ -256,7 +256,7 @@ def setup(hass, config):
async_dispatcher_send(hass, service_signal(call.service, entity_id), *args)
for service, params in CAMERA_SERVICES.items():
hass.services.async_register(DOMAIN, service, async_service_handler, params[0])
hass.services.register(DOMAIN, service, async_service_handler, params[0])
return True