Use literal string interpolation in integrations B-D (f-strings) (#26378)
This commit is contained in:
1 parent
105461edb5
commit
6a24d893c8
52 files changed
+116
-126
No files matched your search
@@ -54,7 +54,7 @@ def setup_scanner(hass, config, see, discovery_info=None):
|
||||
if rssi is not None:
|
||||
attributes["rssi"] = rssi
|
||||
see(
|
||||
mac="{}{}".format(BT_PREFIX, mac),
|
||||
mac=f"{BT_PREFIX}{mac}",
|
||||
host_name=name,
|
||||
attributes=attributes,
|
||||
source_type=SOURCE_TYPE_BLUETOOTH,
|
||||
|
||||
Reference in new issue
Block a user