diff --git a/esphome/components/api/homeassistant_service.h b/esphome/components/api/homeassistant_service.h index 21f75f0cab..d13c4d70b8 100644 --- a/esphome/components/api/homeassistant_service.h +++ b/esphome/components/api/homeassistant_service.h @@ -106,13 +106,13 @@ template class HomeAssistantServiceCallAction : public Action void add_data(K &&key, V &&value) { - this->add_kv(this->data_, std::forward(key), std::forward(value)); + this->add_kv_(this->data_, std::forward(key), std::forward(value)); } template void add_data_template(K &&key, V &&value) { - this->add_kv(this->data_template_, std::forward(key), std::forward(value)); + this->add_kv_(this->data_template_, std::forward(key), std::forward(value)); } template void add_variable(K &&key, V &&value) { - this->add_kv(this->variables_, std::forward(key), std::forward(value)); + this->add_kv_(this->variables_, std::forward(key), std::forward(value)); } #ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES