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
@@ -117,7 +117,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
CONF_WMO_ID,
|
||||
)
|
||||
elif zone_id and wmo_id:
|
||||
station = "{}.{}".format(zone_id, wmo_id)
|
||||
station = f"{zone_id}.{wmo_id}"
|
||||
else:
|
||||
station = closest_station(
|
||||
config.get(CONF_LATITUDE),
|
||||
|
||||
Reference in new issue
Block a user