From 759a92a87aefe71e4f6dd7be655d74f7b336c0fa Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 6 Jun 2025 08:19:54 +0100 Subject: [PATCH] preen --- esphome/components/api/api_connection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index e4e58d388e..ac2c83ddac 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -1105,7 +1105,8 @@ void APIConnection::valve_command(const ValveCommandRequest &msg) { #ifdef USE_MEDIA_PLAYER bool APIConnection::send_media_player_state(media_player::MediaPlayer *media_player) { - return this->schedule_message_(media_player, &APIConnection::try_send_media_player_state_); + return this->schedule_message_(media_player, &APIConnection::try_send_media_player_state_, + MediaPlayerStateResponse::message_type); } APIConnection::EncodedMessage APIConnection::try_send_media_player_state_(EntityBase *entity, APIConnection *conn, uint32_t remaining_size, bool is_single) { @@ -1477,7 +1478,7 @@ APIConnection::EncodedMessage APIConnection::try_send_event_info_(EntityBase *en #ifdef USE_UPDATE bool APIConnection::send_update_state(update::UpdateEntity *update) { - return this->schedule_message_(update, &APIConnection::try_send_update_state_); + return this->schedule_message_(update, &APIConnection::try_send_update_state_, UpdateStateResponse::message_type); } APIConnection::EncodedMessage APIConnection::try_send_update_state_(EntityBase *entity, APIConnection *conn, uint32_t remaining_size, bool is_single) {