From edcf0b6333f77b571368a01321aa03d889d3a3e8 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Fri, 29 Sep 2023 19:13:24 +0200 Subject: [PATCH] Add device class pH to Flipr (#101121) --- homeassistant/components/flipr/sensor.py | 2 +- homeassistant/components/flipr/strings.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/homeassistant/components/flipr/sensor.py b/homeassistant/components/flipr/sensor.py index a8618b2df87..66078c50c1a 100644 --- a/homeassistant/components/flipr/sensor.py +++ b/homeassistant/components/flipr/sensor.py @@ -25,8 +25,8 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( ), SensorEntityDescription( key="ph", - translation_key="ph", icon="mdi:pool", + device_class=SensorDeviceClass.PH, state_class=SensorStateClass.MEASUREMENT, ), SensorEntityDescription( diff --git a/homeassistant/components/flipr/strings.json b/homeassistant/components/flipr/strings.json index 24557ff177b..235117afbd4 100644 --- a/homeassistant/components/flipr/strings.json +++ b/homeassistant/components/flipr/strings.json @@ -40,9 +40,6 @@ "chlorine": { "name": "Chlorine" }, - "ph": { - "name": "pH" - }, "water_temperature": { "name": "Water temperature" },