Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pail23 committed Jun 21, 2024
1 parent 190bc2d commit c1f6ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/stiebel_eltron_isg/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def host_valid(host):
"""Return True if hostname or IP address is valid."""
try:
if ipaddress.ip_address(host) in (4, 6):
if ipaddress.ip_address(host).version in (4, 6):
return True
except ValueError:
disallowed = re.compile(r"[^a-zA-Z\d\-]")
Expand Down

0 comments on commit c1f6ddb

Please sign in to comment.