Improve string formatting v4 (#33668)

* Improve string formatting v4

* Use normal strings instead of f-strings

* Fix zeroconf test by adding back part of a condition
This commit is contained in:
springstan authored and GitHub committed 2020-04-05 16:01:41 +02:00
1 parent b855177fe6
commit e3bcfb88e7
20 files changed
+43 -47

No files matched your search

@@ -160,7 +160,7 @@ class Proximity(Entity):
if (device_state.state).lower() == (self.friendly_name).lower():
device_friendly = device_state.name
if devices_in_zone != "":
devices_in_zone = devices_in_zone + ", "
devices_in_zone = f"{devices_in_zone}, "
devices_in_zone = devices_in_zone + device_friendly
# No-one to track so reset the entity.