mirror of
https://github.com/esphome/esphome.git
synced 2025-10-08 04:43:46 +01:00
[key_collector] Fix clang-tidy sign comparison errors (#11056)
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
This commit is contained in:
@@ -13,8 +13,8 @@ class KeyCollector : public Component {
|
|||||||
void loop() override;
|
void loop() override;
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
void set_provider(key_provider::KeyProvider *provider);
|
void set_provider(key_provider::KeyProvider *provider);
|
||||||
void set_min_length(int min_length) { this->min_length_ = min_length; };
|
void set_min_length(uint32_t min_length) { this->min_length_ = min_length; };
|
||||||
void set_max_length(int max_length) { this->max_length_ = max_length; };
|
void set_max_length(uint32_t max_length) { this->max_length_ = max_length; };
|
||||||
void set_start_keys(std::string start_keys) { this->start_keys_ = std::move(start_keys); };
|
void set_start_keys(std::string start_keys) { this->start_keys_ = std::move(start_keys); };
|
||||||
void set_end_keys(std::string end_keys) { this->end_keys_ = std::move(end_keys); };
|
void set_end_keys(std::string end_keys) { this->end_keys_ = std::move(end_keys); };
|
||||||
void set_end_key_required(bool end_key_required) { this->end_key_required_ = end_key_required; };
|
void set_end_key_required(bool end_key_required) { this->end_key_required_ = end_key_required; };
|
||||||
@@ -33,8 +33,8 @@ class KeyCollector : public Component {
|
|||||||
protected:
|
protected:
|
||||||
void key_pressed_(uint8_t key);
|
void key_pressed_(uint8_t key);
|
||||||
|
|
||||||
int min_length_{0};
|
uint32_t min_length_{0};
|
||||||
int max_length_{0};
|
uint32_t max_length_{0};
|
||||||
std::string start_keys_;
|
std::string start_keys_;
|
||||||
std::string end_keys_;
|
std::string end_keys_;
|
||||||
bool end_key_required_{false};
|
bool end_key_required_{false};
|
||||||
|
Reference in New Issue
Block a user