Fix zoneminder async (#116436)

This commit is contained in:
Joost Lekkerkerker 2024-04-30 09:48:58 +02:00 committed by GitHub
parent b777947978
commit 59d618bed1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ SET_RUN_STATE_SCHEMA = vol.Schema(
) )
def setup(hass: HomeAssistant, config: ConfigType) -> bool: async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the ZoneMinder component.""" """Set up the ZoneMinder component."""
hass.data[DOMAIN] = {} hass.data[DOMAIN] = {}
@ -99,7 +99,7 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
state_name, state_name,
) )
hass.services.register( hass.services.async_register(
DOMAIN, SERVICE_SET_RUN_STATE, set_active_state, schema=SET_RUN_STATE_SCHEMA DOMAIN, SERVICE_SET_RUN_STATE, set_active_state, schema=SET_RUN_STATE_SCHEMA
) )