Add device class pH to aseko pool live (#101120)

This commit is contained in:
Joost Lekkerkerker 2023-09-29 19:07:33 +02:00 committed by GitHub
parent 50827405d0
commit ce083eade9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,6 @@ class VariableSensorEntity(AsekoEntity, SensorEntity):
self._attr_icon = {
"clf": "mdi:flask",
"ph": "mdi:ph",
"rx": "mdi:test-tube",
"waterLevel": "mdi:waves",
"waterTemp": "mdi:coolant-temperature",
@ -69,6 +68,7 @@ class VariableSensorEntity(AsekoEntity, SensorEntity):
self._attr_device_class = {
"airTemp": SensorDeviceClass.TEMPERATURE,
"waterTemp": SensorDeviceClass.TEMPERATURE,
"ph": SensorDeviceClass.PH,
}.get(self._variable.type)
@property