From 0434eea3ab6f5fce696f3a1b025ad931070b5ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A5le=20Stor=C3=B8=20Hauknes?= Date: Sun, 1 Jun 2025 02:05:19 +0200 Subject: [PATCH] Add sound pressure to Airthings (#145946) Add sound pressure --- homeassistant/components/airthings/sensor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/airthings/sensor.py b/homeassistant/components/airthings/sensor.py index 98e627d5b01..a3e4cebe771 100644 --- a/homeassistant/components/airthings/sensor.py +++ b/homeassistant/components/airthings/sensor.py @@ -19,6 +19,7 @@ from homeassistant.const import ( SIGNAL_STRENGTH_DECIBELS, EntityCategory, UnitOfPressure, + UnitOfSoundPressure, UnitOfTemperature, ) from homeassistant.core import HomeAssistant @@ -55,6 +56,12 @@ SENSORS: dict[str, SensorEntityDescription] = { native_unit_of_measurement=UnitOfPressure.MBAR, state_class=SensorStateClass.MEASUREMENT, ), + "sla": SensorEntityDescription( + key="sla", + device_class=SensorDeviceClass.SOUND_PRESSURE, + native_unit_of_measurement=UnitOfSoundPressure.WEIGHTED_DECIBEL_A, + state_class=SensorStateClass.MEASUREMENT, + ), "battery": SensorEntityDescription( key="battery", device_class=SensorDeviceClass.BATTERY,