Handle whoami SSL error less strict
@@ -45,9 +45,8 @@ async def retrieve_whoami(
data["timezone"], utc_from_timestamp(float(data["timestamp"]))
)
- except aiohttp.ClientConnectorSSLError as err:
+ except aiohttp.ClientSSLError as err:
# Expired certificate / Date ISSUE
- # pylint: disable=bad-exception-context
raise WhoamiSSLError(
f"Whoami service failed with SSL verification: {err!s}", _LOGGER.warning
) from err
