1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-24 04:33:49 +01:00

[api] Exclude ConnectRequest/Response when password is disabled (#10704)

This commit is contained in:
J. Nick Koston
2025-09-14 20:45:28 -05:00
committed by GitHub
parent bd9dc43e59
commit 459ef7f262
8 changed files with 24 additions and 7 deletions

View File

@@ -360,6 +360,7 @@ class HelloResponse final : public ProtoMessage {
protected:
};
#ifdef USE_API_PASSWORD
class ConnectRequest final : public ProtoDecodableMessage {
public:
static constexpr uint8_t MESSAGE_TYPE = 3;
@@ -391,6 +392,7 @@ class ConnectResponse final : public ProtoMessage {
protected:
};
#endif
class DisconnectRequest final : public ProtoMessage {
public:
static constexpr uint8_t MESSAGE_TYPE = 5;