From 258ab994ede6dc45b53a86e0e3273b8d6feb1726 Mon Sep 17 00:00:00 2001 From: t0urista Date: Wed, 30 Oct 2024 14:14:32 +0100 Subject: [PATCH] Update sensor.py --- esphome/components/bthome/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ),