mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Add last_ sensors to other
This commit is contained in:
@@ -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,
|
||||||
|
@@ -183,7 +183,7 @@ SENSOR_TYPES: tuple[RingSensorEntityDescription, ...] = (
|
|||||||
RingSensorEntityDescription(
|
RingSensorEntityDescription(
|
||||||
key="last_activity",
|
key="last_activity",
|
||||||
translation_key="last_activity",
|
translation_key="last_activity",
|
||||||
category=["doorbots", "authorized_doorbots", "stickup_cams"],
|
category=["doorbots", "authorized_doorbots", "stickup_cams", "other"],
|
||||||
icon="mdi:history",
|
icon="mdi:history",
|
||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
cls=HistoryRingSensor,
|
cls=HistoryRingSensor,
|
||||||
@@ -191,7 +191,7 @@ SENSOR_TYPES: tuple[RingSensorEntityDescription, ...] = (
|
|||||||
RingSensorEntityDescription(
|
RingSensorEntityDescription(
|
||||||
key="last_ding",
|
key="last_ding",
|
||||||
translation_key="last_ding",
|
translation_key="last_ding",
|
||||||
category=["doorbots", "authorized_doorbots"],
|
category=["doorbots", "authorized_doorbots", "other"],
|
||||||
icon="mdi:history",
|
icon="mdi:history",
|
||||||
kind="ding",
|
kind="ding",
|
||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
|
Reference in New Issue
Block a user