[api] Add DeviceCapabilities message for optional-feature flags (#17984)

This commit is contained in:
Jesse Hills
2026-08-11 14:52:19 +12:00
committed by GitHub
parent 8728aaa616
commit f697cf2011
9 changed files with 682 additions and 1 deletions
+2
View File
@@ -266,6 +266,7 @@ class APIConnection final : public APIServerConnectionBase {
void on_disconnect_request(const DisconnectRequest &msg);
void on_ping_request();
void on_device_info_request();
void on_device_capabilities_request();
void on_list_entities_request() { this->begin_iterator_(ActiveIterator::LIST_ENTITIES); }
void on_subscribe_states_request() {
this->flags_.state_subscription = true;
@@ -385,6 +386,7 @@ class APIConnection final : public APIServerConnectionBase {
bool send_disconnect_response_();
bool send_ping_response_();
bool send_device_info_response_();
bool send_device_capabilities_response_();
#ifdef USE_API_NOISE
bool send_noise_encryption_set_key_response_(const NoiseEncryptionSetKeyRequest &msg);
#endif