Skip to content

Commit

Permalink
fix: error determining source when adding integration
Browse files Browse the repository at this point in the history
  • Loading branch information
uvjim committed Dec 2, 2024
1 parent a651ebc commit c41015c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hdhomerun/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit c41015c

Please sign in to comment.