Skip to content

fix(sip_client): use network::get_ip_addresses() for the local-IP fal… - #281

Merged
eigger merged 3 commits into
masterfrom
fix/sip-client-local-ip-cross-version
Jul 27, 2026
Merged

fix(sip_client): use network::get_ip_addresses() for the local-IP fal… #281
eigger merged 3 commits into
masterfrom
fix/sip-client-local-ip-cross-version

Conversation

@eigger

@eigger eigger commented Jul 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

eigger and others added 3 commits July 27, 2026 20:22
…lback

network::get_use_address()/get_use_address_to() was renamed between two
ESPHome releases both currently in active use (2026.6.5 still has the
old no-arg get_use_address(); 2026.7.2 only has the new buffer-based
get_use_address_to()), so either choice broke one of the two. The
get_ip_addresses()/IPAddress::str_to()/IP_ADDRESS_BUFFER_SIZE surface is
unchanged across both, and returns an actual IP instead of a hostname,
which is what this fallback needs anyway.

Verified compiling clean against real esphome==2026.6.5 and
esphome==2026.7.2.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ESPHome 2026.7.0+ requires Python >=3.12, but this workflow pinned
Python 3.11, so `pip install esphome` (unpinned) silently fell back to
the last 3.11-compatible release (2026.6.5) instead of actually
latest. That's why CI compiled against the old, pre-rename network API
even though it does an unpinned "pip install esphome" every run.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@eigger
eigger merged commit 5bc1688 into master Jul 27, 2026
3 checks passed
@eigger
eigger deleted the fix/sip-client-local-ip-cross-version branch July 27, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant