Fix SM300D2 sensor component routines so they correctly read the sensor output (#2159)

This commit is contained in:
James Braid
2021-09-13 02:23:59 -07:00
committed by GitHub
parent 4e308f551c
commit c6109024aa
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -72,13 +72,13 @@ CONFIG_SCHEMA = cv.All(
),
cv.Optional(CONF_TEMPERATURE): sensor.sensor_schema(
unit_of_measurement=UNIT_CELSIUS,
accuracy_decimals=0,
accuracy_decimals=1,
device_class=DEVICE_CLASS_TEMPERATURE,
state_class=STATE_CLASS_MEASUREMENT,
),
cv.Optional(CONF_HUMIDITY): sensor.sensor_schema(
unit_of_measurement=UNIT_PERCENT,
accuracy_decimals=0,
accuracy_decimals=1,
device_class=DEVICE_CLASS_HUMIDITY,
state_class=STATE_CLASS_MEASUREMENT,
),