Skip to content

Commit

Permalink
Change ids
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Sep 4, 2024
1 parent f6d125c commit 83bff59
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 203 deletions.
6 changes: 2 additions & 4 deletions aioesphomeapi/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ message VoiceAssistantTimerEventResponse {
}

message VoiceAssistantAnnounceRequest {
option (id) = 120;
option (id) = 119;
option (source) = SOURCE_CLIENT;
option (ifdef) = "USE_VOICE_ASSISTANT";

Expand All @@ -1581,11 +1581,9 @@ message VoiceAssistantAnnounceRequest {
}

message VoiceAssistantAnnounceFinished {
option (id) = 121;
option (id) = 120;
option (source) = SOURCE_SERVER;
option (ifdef) = "USE_VOICE_ASSISTANT";

string media_id = 1;
}

// ==================== ALARM CONTROL PANEL ====================
Expand Down
394 changes: 197 additions & 197 deletions aioesphomeapi/api_pb2.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions aioesphomeapi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ def __init__(self, error: BluetoothGATTError) -> None:
116: ListEntitiesUpdateResponse,
117: UpdateStateResponse,
118: UpdateCommandRequest,
120: VoiceAssistantAnnounceRequest,
121: VoiceAssistantAnnounceFinished,
119: VoiceAssistantAnnounceRequest,
120: VoiceAssistantAnnounceFinished,
}

MESSAGE_NUMBER_TO_PROTO = tuple(MESSAGE_TYPE_TO_PROTO.values())

0 comments on commit 83bff59

Please sign in to comment.