simplify inetboxapp code.
This commit is contained in:
@@ -6,7 +6,7 @@ namespace truma_inetbox {
|
||||
|
||||
static const char *const TAG = "truma_inetbox.room_climate";
|
||||
void TrumaRoomClimate::setup() {
|
||||
this->parent_->register_listener([this](const StatusFrameHeater *status_heater) {
|
||||
this->parent_->add_on_heater_message_callback([this](const StatusFrameHeater *status_heater) {
|
||||
// Publish updated state
|
||||
this->target_temperature = temp_code_to_decimal(status_heater->target_temp_room);
|
||||
this->current_temperature = temp_code_to_decimal(status_heater->current_temp_room);
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace truma_inetbox {
|
||||
|
||||
static const char *const TAG = "truma_inetbox.water_climate";
|
||||
void TrumaWaterClimate::setup() {
|
||||
this->parent_->register_listener([this](const StatusFrameHeater *status_heater) {
|
||||
this->parent_->add_on_heater_message_callback([this](const StatusFrameHeater *status_heater) {
|
||||
// Publish updated state
|
||||
this->target_temperature = temp_code_to_decimal(status_heater->target_temp_water);
|
||||
this->current_temperature = temp_code_to_decimal(status_heater->current_temp_water);
|
||||
|
||||
Reference in New Issue
Block a user