mirror of
https://github.com/oxan/esphome-stream-server.git
synced 2026-05-06 01:26:56 +00:00
Fix compatibility with ESPHome 2025.11
Co-authored-by: tastopesato <52707232+tastopesato@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user