Skip to content

Commit ad14a66

Browse files
GSzabadosjoostlek
andauthored
WH46 missing PM1.0 and PM4.0 sensors (#151821)
Co-authored-by: Joost Lekkerkerker <[email protected]>
1 parent 777ac97 commit ad14a66

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

homeassistant/components/ecowitt/sensor.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,17 @@
230230
native_unit_of_measurement=PERCENTAGE,
231231
state_class=SensorStateClass.MEASUREMENT,
232232
),
233+
EcoWittSensorTypes.PM1: SensorEntityDescription(
234+
key="PM1",
235+
device_class=SensorDeviceClass.PM1,
236+
native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
237+
state_class=SensorStateClass.MEASUREMENT,
238+
),
239+
EcoWittSensorTypes.PM4: SensorEntityDescription(
240+
key="PM4",
241+
native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
242+
state_class=SensorStateClass.MEASUREMENT,
243+
),
233244
}
234245

235246

0 commit comments

Comments
 (0)