mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +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:
|
try:
|
||||||
history_task = None
|
history_task = None
|
||||||
async with TaskGroup() as tg:
|
async with TaskGroup() as tg:
|
||||||
if hasattr(device, "history"):
|
if device.has_capability("history"):
|
||||||
history_task = tg.create_task(
|
history_task = tg.create_task(
|
||||||
_call_api(
|
_call_api(
|
||||||
self.hass,
|
self.hass,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user