From 644b00ca2d7d067cf6f9eedc699dc3822d982a2c Mon Sep 17 00:00:00 2001 From: definitio <37266727+definitio@users.noreply.github.com> Date: Tue, 25 Oct 2022 09:44:54 +0300 Subject: [PATCH] Add apcupsd laststest sensor (#80773) --- homeassistant/components/apcupsd/sensor.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/apcupsd/sensor.py b/homeassistant/components/apcupsd/sensor.py index 5f76e6c1afa..b55f672264d 100644 --- a/homeassistant/components/apcupsd/sensor.py +++ b/homeassistant/components/apcupsd/sensor.py @@ -172,6 +172,11 @@ SENSORS: dict[str, SensorEntityDescription] = { native_unit_of_measurement=TEMP_CELSIUS, device_class=SensorDeviceClass.TEMPERATURE, ), + "laststest": SensorEntityDescription( + key="laststest", + name="UPS Last Self Test", + icon="mdi:calendar-clock", + ), "lastxfer": SensorEntityDescription( key="lastxfer", name="UPS Last Transfer", @@ -331,8 +336,8 @@ SENSORS: dict[str, SensorEntityDescription] = { ), "selftest": SensorEntityDescription( key="selftest", - name="UPS Last Self Test", - icon="mdi:calendar-clock", + name="UPS Self Test result", + icon="mdi:information-outline", ), "sense": SensorEntityDescription( key="sense",