1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-16 10:12:21 +01:00

Skip API log message calls for unsubscribed log levels (#9514)

This commit is contained in:
J. Nick Koston
2025-07-15 15:43:55 -10:00
committed by GitHub
parent e152690867
commit 40935f7ae4
3 changed files with 2 additions and 4 deletions

View File

@@ -209,6 +209,7 @@ class APIConnection : public APIServerConnection {
return static_cast<ConnectionState>(this->flags_.connection_state) == ConnectionState::CONNECTED ||
this->is_authenticated();
}
uint8_t get_log_subscription_level() const { return this->flags_.log_subscription; }
void on_fatal_error() override;
void on_unauthenticated_access() override;
void on_no_setup_connection() override;