diff --git a/homeassistant/components/poolsense/icons.json b/homeassistant/components/poolsense/icons.json new file mode 100644 index 00000000000..fb36897af78 --- /dev/null +++ b/homeassistant/components/poolsense/icons.json @@ -0,0 +1,24 @@ +{ + "entity": { + "sensor": { + "chlorine": { + "default": "mdi:pool" + }, + "water_temp": { + "default": "mdi:coolant-temperature" + }, + "chlorine_high": { + "default": "mdi:pool" + }, + "chlorine_low": { + "default": "mdi:pool" + }, + "ph_high": { + "default": "mdi:pool" + }, + "ph_low": { + "default": "mdi:pool" + } + } + } +} diff --git a/homeassistant/components/poolsense/sensor.py b/homeassistant/components/poolsense/sensor.py index c61196d9931..23235c09a84 100644 --- a/homeassistant/components/poolsense/sensor.py +++ b/homeassistant/components/poolsense/sensor.py @@ -25,11 +25,9 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( key="Chlorine", translation_key="chlorine", native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT, - icon="mdi:pool", ), SensorEntityDescription( key="pH", - icon="mdi:pool", device_class=SensorDeviceClass.PH, ), SensorEntityDescription( @@ -40,36 +38,31 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( SensorEntityDescription( key="Water Temp", native_unit_of_measurement=UnitOfTemperature.CELSIUS, - icon="mdi:coolant-temperature", + translation_key="water_temp", device_class=SensorDeviceClass.TEMPERATURE, ), SensorEntityDescription( key="Last Seen", translation_key="last_seen", - icon="mdi:clock", device_class=SensorDeviceClass.TIMESTAMP, ), SensorEntityDescription( key="Chlorine High", translation_key="chlorine_high", native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT, - icon="mdi:pool", ), SensorEntityDescription( key="Chlorine Low", translation_key="chlorine_low", native_unit_of_measurement=UnitOfElectricPotential.MILLIVOLT, - icon="mdi:pool", ), SensorEntityDescription( key="pH High", translation_key="ph_high", - icon="mdi:pool", ), SensorEntityDescription( key="pH Low", translation_key="ph_low", - icon="mdi:pool", ), )