Fix zoneminder async v2 (#116451)
This commit is contained in:
parent
6f406603a6
commit
a12301f696
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue