Fix zoneminder async v2 (#116451)

This commit is contained in:
Joost Lekkerkerker 2024-04-30 15:07:15 +02:00 committed by Franck Nijhof
parent 78d19854dd
commit 3351b82667
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -78,7 +78,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
hass.data[DOMAIN][host_name] = zm_client
try:
success = zm_client.login() and success
success = await hass.async_add_executor_job(zm_client.login) and success
except RequestsConnectionError as ex:
_LOGGER.error(
"ZoneMinder connection failure to %s: %s",