diff --git a/esphome/components/optolink/helpers.cpp b/esphome/components/optolink/helpers.cpp index a25cb0f543..08e4c03f5d 100644 --- a/esphome/components/optolink/helpers.cpp +++ b/esphome/components/optolink/helpers.cpp @@ -2,7 +2,7 @@ #include "helpers.h" #include "esphome/core/log.h" -#include +#include namespace esphome { namespace optolink { @@ -23,7 +23,7 @@ void rtrim(std::string &s) { s.erase(p, s.end()); } -std::string decode_day_schedule(uint8_t *input) { +std::string decode_day_schedule(const uint8_t *input) { char buffer[49]; for (int i = 0; i < 8; i++) { int hour = input[i] >> 3; diff --git a/esphome/components/optolink/text/optolink_text.h b/esphome/components/optolink/text/optolink_text.h index 3c2b12c161..42e8d6aa52 100644 --- a/esphome/components/optolink/text/optolink_text.h +++ b/esphome/components/optolink/text/optolink_text.h @@ -21,7 +21,7 @@ class OptolinkText : public DatapointComponent, public esphome::text::Text, publ protected: void setup() override; void update() override { datapoint_read_request_(); } - void control(const std::string &value); + void control(const std::string &value) override; const StringRef &get_component_name() override { return get_name(); } void datapoint_value_changed(uint8_t *value, size_t length) override;