From 49fb297939d32e177d6bbdb4d197b903cc9c8a4c Mon Sep 17 00:00:00 2001 From: t0urista Date: Mon, 28 Oct 2024 19:35:38 +0100 Subject: [PATCH] Update bthome.cpp --- esphome/components/bthome/bthome.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/bthome/bthome.cpp b/esphome/components/bthome/bthome.cpp index 757f92b01a..630b19ab20 100644 --- a/esphome/components/bthome/bthome.cpp +++ b/esphome/components/bthome/bthome.cpp @@ -534,11 +534,11 @@ void BTHome::set_battery_level(sensor::Sensor *battery_level) { } void BTHome::set_humidity(sensor::Sensor *humidity) { this->humidity_ = humidity; - this->set_publisher(oid_humidity.new_publisher(humidity)); + this->set_publisher(oid_humidity_percent_x100.new_publisher(humidity)); } void BTHome::set_temperature(sensor::Sensor *temperature) { this->temperature_ = temperature; - this->set_publisher(oid_temperature.new_publisher(temperature)); + this->set_publisher(oid_temperature_celsius_x100.new_publisher(temperature)); } #endif