mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Fix zoneminder async v2 (#116451)
This commit is contained in:
parent
6f406603a6
commit
a12301f696
@ -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…
x
Reference in New Issue
Block a user