mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
[api] Remove id from `MediaPlayerSupportedFormat
` (#7406)
This commit is contained in:
parent
c6e64a9ed3
commit
10ccc5f125
@ -1112,7 +1112,6 @@ enum MediaPlayerFormatPurpose {
|
|||||||
MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT = 1;
|
MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT = 1;
|
||||||
}
|
}
|
||||||
message MediaPlayerSupportedFormat {
|
message MediaPlayerSupportedFormat {
|
||||||
option (id) = 119;
|
|
||||||
option (ifdef) = "USE_MEDIA_PLAYER";
|
option (ifdef) = "USE_MEDIA_PLAYER";
|
||||||
|
|
||||||
string format = 1;
|
string format = 1;
|
||||||
|
@ -311,14 +311,6 @@ bool APIServerConnectionBase::send_list_entities_button_response(const ListEntit
|
|||||||
#ifdef USE_BUTTON
|
#ifdef USE_BUTTON
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_MEDIA_PLAYER
|
#ifdef USE_MEDIA_PLAYER
|
||||||
bool APIServerConnectionBase::send_media_player_supported_format(const MediaPlayerSupportedFormat &msg) {
|
|
||||||
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
||||||
ESP_LOGVV(TAG, "send_media_player_supported_format: %s", msg.dump().c_str());
|
|
||||||
#endif
|
|
||||||
return this->send_message_<MediaPlayerSupportedFormat>(msg, 119);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef USE_MEDIA_PLAYER
|
|
||||||
bool APIServerConnectionBase::send_list_entities_media_player_response(const ListEntitiesMediaPlayerResponse &msg) {
|
bool APIServerConnectionBase::send_list_entities_media_player_response(const ListEntitiesMediaPlayerResponse &msg) {
|
||||||
#ifdef HAS_PROTO_MESSAGE_DUMP
|
#ifdef HAS_PROTO_MESSAGE_DUMP
|
||||||
ESP_LOGVV(TAG, "send_list_entities_media_player_response: %s", msg.dump().c_str());
|
ESP_LOGVV(TAG, "send_list_entities_media_player_response: %s", msg.dump().c_str());
|
||||||
@ -1143,17 +1135,6 @@ bool APIServerConnectionBase::read_message(uint32_t msg_size, uint32_t msg_type,
|
|||||||
ESP_LOGVV(TAG, "on_update_command_request: %s", msg.dump().c_str());
|
ESP_LOGVV(TAG, "on_update_command_request: %s", msg.dump().c_str());
|
||||||
#endif
|
#endif
|
||||||
this->on_update_command_request(msg);
|
this->on_update_command_request(msg);
|
||||||
#endif
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 119: {
|
|
||||||
#ifdef USE_MEDIA_PLAYER
|
|
||||||
MediaPlayerSupportedFormat msg;
|
|
||||||
msg.decode(msg_data, msg_size);
|
|
||||||
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
||||||
ESP_LOGVV(TAG, "on_media_player_supported_format: %s", msg.dump().c_str());
|
|
||||||
#endif
|
|
||||||
this->on_media_player_supported_format(msg);
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -145,10 +145,6 @@ class APIServerConnectionBase : public ProtoService {
|
|||||||
#ifdef USE_BUTTON
|
#ifdef USE_BUTTON
|
||||||
virtual void on_button_command_request(const ButtonCommandRequest &value){};
|
virtual void on_button_command_request(const ButtonCommandRequest &value){};
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_MEDIA_PLAYER
|
|
||||||
bool send_media_player_supported_format(const MediaPlayerSupportedFormat &msg);
|
|
||||||
virtual void on_media_player_supported_format(const MediaPlayerSupportedFormat &value){};
|
|
||||||
#endif
|
|
||||||
#ifdef USE_MEDIA_PLAYER
|
#ifdef USE_MEDIA_PLAYER
|
||||||
bool send_list_entities_media_player_response(const ListEntitiesMediaPlayerResponse &msg);
|
bool send_list_entities_media_player_response(const ListEntitiesMediaPlayerResponse &msg);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user