diff --git a/custom_components/nuki_ng/nuki.py b/custom_components/nuki_ng/nuki.py index 29dc76c..d1dfe78 100644 --- a/custom_components/nuki_ng/nuki.py +++ b/custom_components/nuki_ng/nuki.py @@ -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: