Procházet zdrojové kódy

Fix compatibility with ESPHome 2025.11

Co-authored-by: tastopesato <52707232+tastopesato@users.noreply.github.com>
Matthew Royle před 2 měsíci
rodič
revize
b7b03afe8d
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      components/stream_server/stream_server.cpp

+ 4 - 0
components/stream_server/stream_server.cpp

@@ -43,7 +43,11 @@ void StreamServerComponent::loop() {
 
 void StreamServerComponent::dump_config() {
     ESP_LOGCONFIG(TAG, "Stream Server:");
+#if ESPHOME_VERSION_CODE >= VERSION_CODE(2025, 11, 0)
+    ESP_LOGCONFIG(TAG, "  Address: %s:%u", esphome::network::get_use_address(), this->port_);
+#else
     ESP_LOGCONFIG(TAG, "  Address: %s:%u", esphome::network::get_use_address().c_str(), this->port_);
+#endif
 #ifdef USE_BINARY_SENSOR
     LOG_BINARY_SENSOR("  ", "Connected:", this->connected_sensor_);
 #endif