mirror of
https://github.com/esphome/esphome.git
synced 2024-12-28 00:11:43 +01:00
fixed clang-tidy issues
This commit is contained in:
parent
27ce6f4a0a
commit
a971c48259
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue