Various string cleanups (#30435)
* Remove some unnecessary string concatenations * Replace some simple str.formats with f-strings * Replace some string concatenations with f-strings
This commit is contained in:
1 parent
5ad209c6fd
commit
fa4fa30461
105 files changed
+241
-314
No files matched your search
@@ -116,7 +116,7 @@ class NetgearDeviceScanner(DeviceScanner):
|
||||
self.tracked_accesspoints
|
||||
and dev.conn_ap_mac in self.tracked_accesspoints
|
||||
):
|
||||
devices.append(dev.mac + "_" + dev.conn_ap_mac)
|
||||
devices.append(f"{dev.mac}_{dev.conn_ap_mac}")
|
||||
|
||||
return devices
|
||||
|
||||
@@ -144,7 +144,7 @@ class NetgearDeviceScanner(DeviceScanner):
|
||||
ap_name = dev.name
|
||||
break
|
||||
|
||||
return name + " on " + ap_name
|
||||
return f"{name} on {ap_name}"
|
||||
|
||||
return name
|
||||
|
||||
|
||||
Reference in new issue
Block a user