Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle ClientConnectorError in Netatmo data handler #99116

Merged
merged 3 commits into from
Oct 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions homeassistant/components/netatmo/data_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from time import time
from typing import Any

import aiohttp
import pyatmo
from pyatmo.modules.device_types import DeviceCategory as NetatmoDeviceCategory

Expand Down Expand Up @@ -211,6 +212,10 @@
_LOGGER.debug(err)
return

except aiohttp.ClientConnectorError as err:
_LOGGER.debug(err)
return

Check warning on line 217 in homeassistant/components/netatmo/data_handler.py

View check run for this annotation

Codecov / codecov/patch

homeassistant/components/netatmo/data_handler.py#L216-L217

Added lines #L216 - L217 were not covered by tests

for update_callback in self.publisher[signal_name].subscriptions:
if update_callback:
update_callback()
Expand Down