Add device error sensor to ViCare integration (#142605)

* add error sensor

* remove translation
This commit is contained in:
Christopher Fenner 2025-04-11 08:11:53 +02:00 committed by GitHub
parent 32da8c52f7
commit f519b20495
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,6 +112,11 @@ GLOBAL_SENSORS: tuple[ViCareBinarySensorEntityDescription, ...] = (
device_class=BinarySensorDeviceClass.RUNNING,
value_getter=lambda api: api.getOneTimeCharge(),
),
ViCareBinarySensorEntityDescription(
key="device_error",
device_class=BinarySensorDeviceClass.PROBLEM,
value_getter=lambda api: len(api.getDeviceErrors()) > 0,
),
)