Update bthome.cpp

This commit is contained in:
t0urista 2024-10-28 19:35:38 +01:00 committed by GitHub
parent 9a380288ff
commit 49fb297939
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -534,11 +534,11 @@ void BTHome::set_battery_level(sensor::Sensor *battery_level) {
} }
void BTHome::set_humidity(sensor::Sensor *humidity) { void BTHome::set_humidity(sensor::Sensor *humidity) {
this->humidity_ = 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) { void BTHome::set_temperature(sensor::Sensor *temperature) {
this->temperature_ = temperature; this->temperature_ = temperature;
this->set_publisher(oid_temperature.new_publisher(temperature)); this->set_publisher(oid_temperature_celsius_x100.new_publisher(temperature));
} }
#endif #endif