mirror of
https://github.com/home-assistant/core.git
synced 2026-08-28 18:24:50 -05:00
When an invalid IP address entry exists in ip_bans.yaml (e.g., a typo like "Eo128.199.160.243"), Home Assistant would crash with a ValueError during startup, making the web UI completely unreachable. This change catches ValueError exceptions when parsing IP addresses from the ban file and logs an error message while skipping the invalid entry. Valid IP bans continue to be loaded and enforced normally. Fixes #157180 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>