diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index 75f7aac14b..fa1648a116 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -1437,7 +1437,7 @@ uint16_t APIConnection::try_send_event_info(EntityBase *entity, APIConnection *c #endif #ifdef USE_INFRARED -void APIConnection::infrared_transmit_raw_timings(const InfraredRFTransmitRawTimingsRequest &msg) { +void APIConnection::infrared_rf_transmit_raw_timings(const InfraredRFTransmitRawTimingsRequest &msg) { if (global_api_server != nullptr) { global_api_server->on_infrared_transmit_raw_timings_request(msg); } diff --git a/esphome/components/api/api_connection.h b/esphome/components/api/api_connection.h index 4a4b957d60..a16249edf5 100644 --- a/esphome/components/api/api_connection.h +++ b/esphome/components/api/api_connection.h @@ -173,7 +173,7 @@ class APIConnection final : public APIServerConnection { #endif #ifdef USE_INFRARED - void infrared_transmit_raw_timings(const InfraredRFTransmitRawTimingsRequest &msg); + void infrared_rf_transmit_raw_timings(const InfraredRFTransmitRawTimingsRequest &msg) override; void send_infrared_receive_event(const InfraredRFReceiveEvent &msg); #endif