Skip to content

Commit

Permalink
Merge pull request #114 from uvjim/fix-error-in-config-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
uvjim authored Dec 2, 2024
2 parents a651ebc + c41015c commit 2c5b350
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 2c5b350

Please sign in to comment.