Use literal string interpolation in integrations K-M (f-strings) (#26389)

This commit is contained in:
Franck Nijhof 2019-09-03 21:14:00 +02:00 committed by Pascal Vizeli
parent ef0e9431b6
commit 7203027cbf
51 changed files with 104 additions and 121 deletions

View file

@ -85,7 +85,7 @@ class LyftSensor(Entity):
self._sensortype = sensorType
self._name = "{} {}".format(self._product["display_name"], self._sensortype)
if "lyft" not in self._name.lower():
self._name = "Lyft{}".format(self._name)
self._name = f"Lyft{self._name}"
if self._sensortype == "time":
self._unit_of_measurement = "min"
elif self._sensortype == "price":