mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Catch an extra error for Ring (#32477)
This commit is contained in:
parent
0c0d4c460f
commit
c7d983fd44
@ -205,6 +205,11 @@ class GlobalDataUpdater:
|
||||
"Time out fetching Ring %s data", self.data_type,
|
||||
)
|
||||
return
|
||||
except requests.RequestException as err:
|
||||
_LOGGER.warning(
|
||||
"Error fetching Ring %s data: %s", self.data_type, err,
|
||||
)
|
||||
return
|
||||
|
||||
for update_callback in self.listeners:
|
||||
update_callback()
|
||||
@ -290,6 +295,14 @@ class DeviceDataUpdater:
|
||||
device_id,
|
||||
)
|
||||
continue
|
||||
except requests.RequestException as err:
|
||||
_LOGGER.warning(
|
||||
"Error fetching Ring %s data for device %s: %s",
|
||||
self.data_type,
|
||||
device_id,
|
||||
err,
|
||||
)
|
||||
continue
|
||||
|
||||
for update_callback in info["update_callbacks"]:
|
||||
self.hass.loop.call_soon_threadsafe(update_callback, data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user