diff --git a/homeassistant/components/dhcp/__init__.py b/homeassistant/components/dhcp/__init__.py index 29b25d0781b..c3705dad3dd 100644 --- a/homeassistant/components/dhcp/__init__.py +++ b/homeassistant/components/dhcp/__init__.py @@ -58,7 +58,6 @@ from homeassistant.helpers.event import ( from homeassistant.helpers.typing import ConfigType, EventType from homeassistant.loader import DHCPMatcher, async_get_dhcp from homeassistant.util.async_ import run_callback_threadsafe -from homeassistant.util.network import is_invalid, is_link_local, is_loopback from .const import DOMAIN @@ -162,9 +161,9 @@ class WatcherBase(ABC): made_ip_address = make_ip_address(ip_address) if ( - is_link_local(made_ip_address) - or is_loopback(made_ip_address) - or is_invalid(made_ip_address) + made_ip_address.is_link_local + or made_ip_address.is_loopback + or made_ip_address.is_unspecified ): # Ignore self assigned addresses, loopback, invalid return