Skip to content

Commit 36b3133

Browse files
blotusfrenck
authored andcommitted
Fix support for Ecowitt soil moisture sensors (home-assistant#151685)
1 parent fe01e96 commit 36b3133

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

homeassistant/components/ecowitt/sensor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@
218218
native_unit_of_measurement=PERCENTAGE,
219219
state_class=SensorStateClass.MEASUREMENT,
220220
),
221+
EcoWittSensorTypes.SOIL_MOISTURE: SensorEntityDescription(
222+
key="SOIL_MOISTURE",
223+
device_class=SensorDeviceClass.MOISTURE,
224+
native_unit_of_measurement=PERCENTAGE,
225+
state_class=SensorStateClass.MEASUREMENT,
226+
),
221227
}
222228

223229

0 commit comments

Comments
 (0)