mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +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 time import time
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
import pyatmo
|
import pyatmo
|
||||||
from pyatmo.modules.device_types import DeviceCategory as NetatmoDeviceCategory
|
from pyatmo.modules.device_types import DeviceCategory as NetatmoDeviceCategory
|
||||||
|
|
||||||
@ -211,6 +212,10 @@ class NetatmoDataHandler:
|
|||||||
_LOGGER.debug(err)
|
_LOGGER.debug(err)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
except aiohttp.ClientConnectorError as err:
|
||||||
|
_LOGGER.debug(err)
|
||||||
|
return
|
||||||
|
|
||||||
for update_callback in self.publisher[signal_name].subscriptions:
|
for update_callback in self.publisher[signal_name].subscriptions:
|
||||||
if update_callback:
|
if update_callback:
|
||||||
update_callback()
|
update_callback()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user