1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use literal string interpolation in integrations B-D (f-strings) (#26378)

This commit is contained in:
Franck Nijhof
2019-09-03 17:09:59 +02:00
committed by Pascal Vizeli
parent 105461edb5
commit 6a24d893c8
52 changed files with 116 additions and 126 deletions

View File

@@ -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,