diff --git a/esphome/components/ebus/ebus_sensor_base.cpp b/esphome/components/ebus/ebus_sensor_base.cpp index ff5bf3234d..ea0062b965 100644 --- a/esphome/components/ebus/ebus_sensor_base.cpp +++ b/esphome/components/ebus/ebus_sensor_base.cpp @@ -16,18 +16,12 @@ void EbusSensorBase::dump_config() { ESP_LOGCONFIG(TAG, " command: 0x%04x", this->command_); }; -void EbusSensorBase::set_send_poll(bool send_poll) { this->send_poll_ = send_poll; } -void EbusSensorBase::set_command(uint16_t command) { this->command_ = command; } -void EbusSensorBase::set_payload(const std::vector &payload) { this->payload_ = payload; } -void EbusSensorBase::set_response_read_position(uint8_t response_position) { this->response_position_ = response_position; } - optional EbusSensorBase::prepare_command() { optional command; if (this->send_poll_) { command = SendCommand( // - this->primary_address_, this->address_, this->command_, - this->payload_.size(), &this->payload_[0]); + this->primary_address_, this->address_, this->command_, this->payload_.size(), &this->payload_[0]); } return command; } diff --git a/esphome/components/ebus/ebus_sensor_base.h b/esphome/components/ebus/ebus_sensor_base.h index 1f55220986..1c4feb2e72 100644 --- a/esphome/components/ebus/ebus_sensor_base.h +++ b/esphome/components/ebus/ebus_sensor_base.h @@ -10,11 +10,10 @@ class EbusSensorBase : public EbusReceiver, public EbusSender, public Component public: void dump_config() override; - void set_send_poll(bool /*send_poll*/); - void set_command(uint16_t /*command*/); - void set_payload(const std::vector & /*payload*/); - - void set_response_read_position(uint8_t /*response_position*/); + void set_send_poll(bool send_poll) { this->send_poll_ = send_poll; } + void set_command(uint16_t command) { this->command_ = command; } + void set_payload(const std::vector &payload) { this->payload_ = payload; } + void set_response_read_position(uint8_t response_position) { this->response_position_ = response_position; } optional prepare_command() override;