Use literal string interpolation in integrations K-M (f-strings) (#26389)
This commit is contained in:
parent
ef0e9431b6
commit
7203027cbf
51 changed files with 104 additions and 121 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue