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,
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",