mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Use has_capability instead of hasattr for ring history (#109791)
This commit is contained in:
parent
b8c4821e48
commit
6701806ed2
@ -77,7 +77,7 @@ class RingDataCoordinator(DataUpdateCoordinator[dict[int, RingDeviceData]]):
|
||||
try:
|
||||
history_task = None
|
||||
async with TaskGroup() as tg:
|
||||
if hasattr(device, "history"):
|
||||
if device.has_capability("history"):
|
||||
history_task = tg.create_task(
|
||||
_call_api(
|
||||
self.hass,
|
||||
|
Loading…
x
Reference in New Issue
Block a user