Add entity translations for PoolSense (#95814)
This commit is contained in:
parent
4bc57c0466
commit
8495da1964
3 changed files with 42 additions and 11 deletions
|
@ -22,55 +22,53 @@ from .const import DOMAIN
|
|||
SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
||||
SensorEntityDescription(
|
||||
key="Chlorine",
|
||||
translation_key="chlorine",
|
||||
native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT,
|
||||
icon="mdi:pool",
|
||||
name="Chlorine",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="pH",
|
||||
translation_key="ph",
|
||||
icon="mdi:pool",
|
||||
name="pH",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="Battery",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
name="Battery",
|
||||
device_class=SensorDeviceClass.BATTERY,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="Water Temp",
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
icon="mdi:coolant-temperature",
|
||||
name="Temperature",
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="Last Seen",
|
||||
translation_key="last_seen",
|
||||
icon="mdi:clock",
|
||||
name="Last Seen",
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="Chlorine High",
|
||||
translation_key="chlorine_high",
|
||||
native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT,
|
||||
icon="mdi:pool",
|
||||
name="Chlorine High",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="Chlorine Low",
|
||||
translation_key="chlorine_low",
|
||||
native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT,
|
||||
icon="mdi:pool",
|
||||
name="Chlorine Low",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="pH High",
|
||||
translation_key="ph_high",
|
||||
icon="mdi:pool",
|
||||
name="pH High",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="pH Low",
|
||||
translation_key="ph_low",
|
||||
icon="mdi:pool",
|
||||
name="pH Low",
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue