Use literal string interpolation in integrations E-G (f-strings) (#26379)

This commit is contained in:
Franck Nijhof authored and Pascal Vizeli committed 2019-09-03 17:10:56 +02:00
1 parent 6a24d893c8
commit fa79ef1220
45 files changed
+87 -92

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ class EbusdSensor(Entity):
@property
def name(self):
"""Return the name of the sensor."""
return "{} {}".format(self._client_name, self._name)
return f"{self._client_name} {self._name}"
@property
def state(self):