Use literal string interpolation in integrations T-W (f-strings) (#26394)
This commit is contained in:
parent
cde09062c4
commit
ef0e9431b6
50 changed files with 128 additions and 132 deletions
|
@ -113,7 +113,7 @@ class WaqiSensor(Entity):
|
|||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
if self.station_name:
|
||||
return "WAQI {}".format(self.station_name)
|
||||
return f"WAQI {self.station_name}"
|
||||
return "WAQI {}".format(self.url if self.url else self.uid)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue