mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Add device class pH to aseko pool live (#101120)
This commit is contained in:
parent
50827405d0
commit
ce083eade9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user