[spi][http_request][demo] Fix latent clang-tidy issues in headers (#16080)

This commit is contained in:
Jonathan Swoboda
2026-04-28 16:09:35 -04:00
committed by GitHub
parent 7891fd5cf1
commit eb01d43feb
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ class DemoAlarmControlPanel : public AlarmControlPanel, public Component {
protected:
void control(const AlarmControlPanelCall &call) override {
auto state = call.get_state().value_or(ACP_STATE_DISARMED);
auto code = call.get_code();
const auto &code = call.get_code();
switch (state) {
case ACP_STATE_ARMED_AWAY:
if (this->get_requires_code_to_arm()) {

View File

@@ -462,7 +462,7 @@ template<typename... Ts> class HttpRequestSendAction : public Action<Ts...> {
this->request_headers_.push_back({key, value});
}
void add_collect_header(const char *value) { this->lower_case_collect_headers_.push_back(value); }
void add_collect_header(const char *value) { this->lower_case_collect_headers_.emplace_back(value); }
void init_json(size_t count) { this->json_.init(count); }
void add_json(const char *key, TemplatableValue<std::string, Ts...> value) { this->json_.push_back({key, value}); }

View File

@@ -451,7 +451,7 @@ class SPIDevice : public SPIClient {
uint8_t read_byte() { return this->delegate_->transfer(0); }
void read_array(uint8_t *data, size_t length) { return this->delegate_->read_array(data, length); }
void read_array(uint8_t *data, size_t length) { this->delegate_->read_array(data, length); }
/**
* Write a single data item, up to 32 bits.