1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-24 14:12:24 +01:00
This commit is contained in:
J. Nick Koston
2025-07-30 22:15:39 -10:00
parent 712de79973
commit 40e2960264
3 changed files with 12 additions and 6 deletions

View File

@@ -235,6 +235,13 @@ class APIConnection : public APIServerConnection {
this->is_authenticated();
}
uint8_t get_log_subscription_level() const { return this->flags_.log_subscription; }
// Get client API version for feature detection
bool client_supports_api_version(uint16_t major, uint16_t minor) const {
return this->client_api_version_major_ > major ||
(this->client_api_version_major_ == major && this->client_api_version_minor_ >= minor);
}
void on_fatal_error() override;
#ifdef USE_API_PASSWORD
void on_unauthenticated_access() override;