diff --git a/esphome/components/bthome/sensor.py b/esphome/components/bthome/sensor.py index b4007393c3..ea4ffb3db1 100644 --- a/esphome/components/bthome/sensor.py +++ b/esphome/components/bthome/sensor.py @@ -42,13 +42,13 @@ CONFIG_SCHEMA = cv.Schema( ), cv.Optional(CONF_ILLUMINANCE): sensor.sensor_schema( unit_of_measurement=UNIT_LUX, - accuracy_decimals=2, + accuracy_decimals=0, device_class=DEVICE_CLASS_ILLUMINANCE, state_class=STATE_CLASS_MEASUREMENT, ), cv.Optional(CONF_HUMIDITY): sensor.sensor_schema( unit_of_measurement=UNIT_PERCENT, - accuracy_decimals=2, + accuracy_decimals=0, device_class=DEVICE_CLASS_HUMIDITY, state_class=STATE_CLASS_MEASUREMENT, ),