diff --git a/homeassistant/components/poolsense/binary_sensor.py b/homeassistant/components/poolsense/binary_sensor.py index 2a350816685..e206521c3d9 100644 --- a/homeassistant/components/poolsense/binary_sensor.py +++ b/homeassistant/components/poolsense/binary_sensor.py @@ -17,12 +17,12 @@ from .const import DOMAIN BINARY_SENSOR_TYPES: tuple[BinarySensorEntityDescription, ...] = ( BinarySensorEntityDescription( key="pH Status", - name="pH Status", + translation_key="ph_status", device_class=BinarySensorDeviceClass.PROBLEM, ), BinarySensorEntityDescription( key="Chlorine Status", - name="Chlorine Status", + translation_key="chlorine_status", device_class=BinarySensorDeviceClass.PROBLEM, ), ) diff --git a/homeassistant/components/poolsense/sensor.py b/homeassistant/components/poolsense/sensor.py index f8f91620321..fe3535b378f 100644 --- a/homeassistant/components/poolsense/sensor.py +++ b/homeassistant/components/poolsense/sensor.py @@ -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", ), ) diff --git a/homeassistant/components/poolsense/strings.json b/homeassistant/components/poolsense/strings.json index 2ddf3ee77e8..9ec67e223a1 100644 --- a/homeassistant/components/poolsense/strings.json +++ b/homeassistant/components/poolsense/strings.json @@ -14,5 +14,38 @@ "abort": { "already_configured": "[%key:common::config_flow::abort::already_configured_device%]" } + }, + "entity": { + "binary_sensor": { + "ph_status": { + "name": "pH status" + }, + "chlorine_status": { + "name": "Chlorine status" + } + }, + "sensor": { + "chlorine": { + "name": "Chlorine" + }, + "ph": { + "name": "pH" + }, + "last_seen": { + "name": "Last seen" + }, + "chlorine_high": { + "name": "Chlorine high" + }, + "chlorine_low": { + "name": "Chlorine low" + }, + "ph_high": { + "name": "pH high" + }, + "ph_low": { + "name": "pH low" + } + } } }