Handle ClientConnectorError in Netatmo data handler (#99116)

pull/93562/head
Anil Daoud 2023-10-07 20:19:57 +08:00 committed by GitHub
parent 35be5957c3
commit f3864e6e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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()