Add apcupsd laststest sensor (#80773)

pull/80936/head
definitio 2022-10-25 09:44:54 +03:00 committed by GitHub
parent 559e281431
commit 644b00ca2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -172,6 +172,11 @@ SENSORS: dict[str, SensorEntityDescription] = {
native_unit_of_measurement=TEMP_CELSIUS, native_unit_of_measurement=TEMP_CELSIUS,
device_class=SensorDeviceClass.TEMPERATURE, device_class=SensorDeviceClass.TEMPERATURE,
), ),
"laststest": SensorEntityDescription(
key="laststest",
name="UPS Last Self Test",
icon="mdi:calendar-clock",
),
"lastxfer": SensorEntityDescription( "lastxfer": SensorEntityDescription(
key="lastxfer", key="lastxfer",
name="UPS Last Transfer", name="UPS Last Transfer",
@ -331,8 +336,8 @@ SENSORS: dict[str, SensorEntityDescription] = {
), ),
"selftest": SensorEntityDescription( "selftest": SensorEntityDescription(
key="selftest", key="selftest",
name="UPS Last Self Test", name="UPS Self Test result",
icon="mdi:calendar-clock", icon="mdi:information-outline",
), ),
"sense": SensorEntityDescription( "sense": SensorEntityDescription(
key="sense", key="sense",