mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Handle ConnectionError if proxmoxve host is not reachable (#51970)
* handle ConnectionError if host is not reachable * import only needed exceptions fix pylint issue * don't overwrite built-in ConnectionError * fix typo
This commit is contained in:
parent
04b425ed89
commit
ba3416b724
@ -124,6 +124,9 @@ async def async_setup(hass: HomeAssistant, config: dict):
|
||||
except ConnectTimeout:
|
||||
_LOGGER.warning("Connection to host %s timed out during setup", host)
|
||||
continue
|
||||
except requests.exceptions.ConnectionError:
|
||||
_LOGGER.warning("Host %s is not reachable", host)
|
||||
continue
|
||||
|
||||
hass.data[PROXMOX_CLIENTS][host] = proxmox_client
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user