1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00

fix: correct stringview to string_view in dynamic_lamp component

This commit is contained in:
Oliver Kleinecke
2025-02-14 15:00:01 +01:00
parent e487fd4e42
commit fb993828cc
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
#include "dynamic_lamp.h" #include "dynamic_lamp.h"
#include <string> #include <string>
#include <cstring> #include <cstring>
#include <stringview> #include <string_view>
#include <vector> #include <vector>
namespace esphome { namespace esphome {

View File

@@ -43,7 +43,7 @@ class DynamicLamp : public Component {
protected: protected:
void restore_lamp_values_(uint8_t lamp_number); void restore_lamp_values_(uint8_t lamp_number);
void set_lamp_values_(uint8_t lamp_number, bool active, uint16_t selected_outputs, uint8_t mode, uint8_t mode_value); void set_lamp_values_(uint8_t lamp_number, bool active, uint16_t selected_outputs, uint8_t mode, uint8_t mode_value);
std::stringview ltrim_(std::string_view str); std::string_view ltrim_(std::string_view str);
std::string_view rtrim_(std::string_view str); std::string_view rtrim_(std::string_view str);
std::string_view trim_(std::string_view str); std::string_view trim_(std::string_view str);