Add icon translations to Ondilo ico (#111990)

This commit is contained in:
Joost Lekkerkerker 2024-03-02 00:35:40 +01:00 committed by GitHub
parent f3e0060128
commit 10c06a1553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 5 deletions

View 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"
}
}
}
}

View File

@ -43,20 +43,17 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
key="orp", key="orp",
translation_key="oxydo_reduction_potential", translation_key="oxydo_reduction_potential",
native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT, native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT,
icon="mdi:pool",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
SensorEntityDescription( SensorEntityDescription(
key="ph", key="ph",
translation_key="ph", translation_key="ph",
icon="mdi:pool",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
SensorEntityDescription( SensorEntityDescription(
key="tds", key="tds",
translation_key="tds", translation_key="tds",
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION, native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
icon="mdi:pool",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
SensorEntityDescription( SensorEntityDescription(
@ -68,7 +65,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription( SensorEntityDescription(
key="rssi", key="rssi",
translation_key="rssi", translation_key="rssi",
icon="mdi:wifi",
native_unit_of_measurement=PERCENTAGE, native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
@ -76,7 +72,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
key="salt", key="salt",
translation_key="salt", translation_key="salt",
native_unit_of_measurement="mg/L", native_unit_of_measurement="mg/L",
icon="mdi:pool",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
) )