mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 07:17:12 +00:00
Standardise geniusheub error levels (#37512)
This commit is contained in:
parent
f0dda4f875
commit
d79067db7e
@ -181,14 +181,14 @@ class GeniusBroker:
|
|||||||
await self.client.update()
|
await self.client.update()
|
||||||
if self._connect_error:
|
if self._connect_error:
|
||||||
self._connect_error = False
|
self._connect_error = False
|
||||||
_LOGGER.warning("Connection to geniushub re-established")
|
_LOGGER.info("Connection to geniushub re-established")
|
||||||
except (
|
except (
|
||||||
aiohttp.ClientResponseError,
|
aiohttp.ClientResponseError,
|
||||||
aiohttp.client_exceptions.ClientConnectorError,
|
aiohttp.client_exceptions.ClientConnectorError,
|
||||||
) as err:
|
) as err:
|
||||||
if not self._connect_error:
|
if not self._connect_error:
|
||||||
self._connect_error = True
|
self._connect_error = True
|
||||||
_LOGGER.warning(
|
_LOGGER.error(
|
||||||
"Connection to geniushub failed (unable to update), message is: %s",
|
"Connection to geniushub failed (unable to update), message is: %s",
|
||||||
err,
|
err,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user