diff --git a/custom_components/hdhomerun/config_flow.py b/custom_components/hdhomerun/config_flow.py index 87f5c0f..ae13eeb 100644 --- a/custom_components/hdhomerun/config_flow.py +++ b/custom_components/hdhomerun/config_flow.py @@ -378,7 +378,7 @@ async def async_step_ssdp( config_entry: config_entries.ConfigEntry = await self.async_set_unique_id( unique_id=serial ) - if config_entry.source == "ssdp": + if config_entry is not None and config_entry.source == "ssdp": ip: ipaddress.IPv4Address | ipaddress.IPv6Address = ipaddress.ip_address( self._host )