mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Handle ClientConnectorError in Netatmo data handler (#99116)
This commit is contained in:
parent
35be5957c3
commit
f3864e6e2f
@ -10,6 +10,7 @@ import logging
|
||||
from time import time
|
||||
from typing import Any
|
||||
|
||||
import aiohttp
|
||||
import pyatmo
|
||||
from pyatmo.modules.device_types import DeviceCategory as NetatmoDeviceCategory
|
||||
|
||||
@ -211,6 +212,10 @@ class NetatmoDataHandler:
|
||||
_LOGGER.debug(err)
|
||||
return
|
||||
|
||||
except aiohttp.ClientConnectorError as err:
|
||||
_LOGGER.debug(err)
|
||||
return
|
||||
|
||||
for update_callback in self.publisher[signal_name].subscriptions:
|
||||
if update_callback:
|
||||
update_callback()
|
||||
|
Loading…
x
Reference in New Issue
Block a user