Skip to content

Commit e050981

Browse files
authored
Use f-string to build IPv6 link-loacl address with scope id (#504)
1 parent e555cbc commit e050981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matter_server/server/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def scope_ipv6_lla(self, ip_addr: str) -> str:
195195
ip_addr,
196196
self.primary_interface,
197197
)
198-
return ip_addr + "%" + self.primary_interface
198+
return f"{ip_addr}%{self.primary_interface}"
199199

200200
def register_api_command(
201201
self,

0 commit comments

Comments
 (0)