Skip to content

Commit

Permalink
Merge pull request #178 from enkama/patch-1
Browse files Browse the repository at this point in the history
Update nuki.py
  • Loading branch information
kvj authored Jan 17, 2024
2 parents 85f1845 + 8b125c7 commit efd4de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nuki_ng/nuki.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def discover_bridge(self) -> str:
def bridge_url(self, path: str, extra=None) -> str:
extra_str = "&%s" % (urlencode(extra)) if extra else ""
url = f"http://{self.bridge}:8080"
if re.match(".+\\:\d+$", self.bridge):
if re.match(r".+:\d+$", self.bridge):
# Port inside
url = f"http://{self.bridge}"
if self.use_hashed:
Expand Down

0 comments on commit efd4de0

Please sign in to comment.