fixed clang-tidy issues

This commit is contained in:
j0ta29 2024-03-26 20:51:00 +00:00
parent 27ce6f4a0a
commit a971c48259
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
#include "helpers.h"
#include "esphome/core/log.h"
#include <string.h>
#include <cstring>
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;

View file

@ -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;