Add icon translations to Ondilo ico (#111990)
This commit is contained in:
parent
f3e0060128
commit
10c06a1553
2 changed files with 21 additions and 5 deletions
21
homeassistant/components/ondilo_ico/icons.json
Normal file
21
homeassistant/components/ondilo_ico/icons.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"oxydo_reduction_potential": {
|
||||
"default": "mdi:pool"
|
||||
},
|
||||
"ph": {
|
||||
"default": "mdi:pool"
|
||||
},
|
||||
"tds": {
|
||||
"default": "mdi:pool"
|
||||
},
|
||||
"rssi": {
|
||||
"default": "mdi:wifi"
|
||||
},
|
||||
"salt": {
|
||||
"default": "mdi:pool"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -43,20 +43,17 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
key="orp",
|
||||
translation_key="oxydo_reduction_potential",
|
||||
native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT,
|
||||
icon="mdi:pool",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="ph",
|
||||
translation_key="ph",
|
||||
icon="mdi:pool",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="tds",
|
||||
translation_key="tds",
|
||||
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
|
||||
icon="mdi:pool",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
|
@ -68,7 +65,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
SensorEntityDescription(
|
||||
key="rssi",
|
||||
translation_key="rssi",
|
||||
icon="mdi:wifi",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
|
@ -76,7 +72,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
key="salt",
|
||||
translation_key="salt",
|
||||
native_unit_of_measurement="mg/L",
|
||||
icon="mdi:pool",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue