From 27631978d0d940a3fcbece761357d97c02bcca55 Mon Sep 17 00:00:00 2001 From: Cosimo Meli Date: Tue, 6 Feb 2024 17:45:51 +0100 Subject: [PATCH] Revert "Add last_ sensors to other" This reverts commit 5c03bba5a10130489bb33897a1952ca426bd725a. --- homeassistant/components/ring/coordinator.py | 2 +- homeassistant/components/ring/sensor.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/ring/coordinator.py b/homeassistant/components/ring/coordinator.py index 636d8eb069f..5b6412caffa 100644 --- a/homeassistant/components/ring/coordinator.py +++ b/homeassistant/components/ring/coordinator.py @@ -77,7 +77,7 @@ class RingDataCoordinator(DataUpdateCoordinator[dict[int, RingDeviceData]]): try: history_task = None async with TaskGroup() as tg: - if device.has_capability("history"): + if hasattr(device, "history"): history_task = tg.create_task( _call_api( self.hass, diff --git a/homeassistant/components/ring/sensor.py b/homeassistant/components/ring/sensor.py index 17b61a61b68..1e2fa5b7f08 100644 --- a/homeassistant/components/ring/sensor.py +++ b/homeassistant/components/ring/sensor.py @@ -183,7 +183,7 @@ SENSOR_TYPES: tuple[RingSensorEntityDescription, ...] = ( RingSensorEntityDescription( key="last_activity", translation_key="last_activity", - category=["doorbots", "authorized_doorbots", "stickup_cams", "other"], + category=["doorbots", "authorized_doorbots", "stickup_cams"], icon="mdi:history", device_class=SensorDeviceClass.TIMESTAMP, cls=HistoryRingSensor, @@ -191,7 +191,7 @@ SENSOR_TYPES: tuple[RingSensorEntityDescription, ...] = ( RingSensorEntityDescription( key="last_ding", translation_key="last_ding", - category=["doorbots", "authorized_doorbots", "other"], + category=["doorbots", "authorized_doorbots"], icon="mdi:history", kind="ding", device_class=SensorDeviceClass.TIMESTAMP,