From 591ffa8b680afb8dcf127e817f08c899c2f5ae79 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Fri, 29 Sep 2023 19:12:56 +0200 Subject: [PATCH] Add device class pH to Poolsense (#101122) --- homeassistant/components/poolsense/sensor.py | 2 +- homeassistant/components/poolsense/strings.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/homeassistant/components/poolsense/sensor.py b/homeassistant/components/poolsense/sensor.py index ed120562374..c61196d9931 100644 --- a/homeassistant/components/poolsense/sensor.py +++ b/homeassistant/components/poolsense/sensor.py @@ -29,8 +29,8 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( ), SensorEntityDescription( key="pH", - translation_key="ph", icon="mdi:pool", + device_class=SensorDeviceClass.PH, ), SensorEntityDescription( key="Battery", diff --git a/homeassistant/components/poolsense/strings.json b/homeassistant/components/poolsense/strings.json index 9ec67e223a1..02f186994e2 100644 --- a/homeassistant/components/poolsense/strings.json +++ b/homeassistant/components/poolsense/strings.json @@ -28,9 +28,6 @@ "chlorine": { "name": "Chlorine" }, - "ph": { - "name": "pH" - }, "last_seen": { "name": "Last seen" },