Bump pyupgrade to 2.12.0 (#48943)
This commit is contained in:
parent
ee0c87df1c
commit
8e2b5b36b5
45 changed files with 94 additions and 95 deletions
|
@ -121,7 +121,7 @@ class WaqiSensor(SensorEntity):
|
|||
"""Return the name of the sensor."""
|
||||
if self.station_name:
|
||||
return f"WAQI {self.station_name}"
|
||||
return "WAQI {}".format(self.url if self.url else self.uid)
|
||||
return f"WAQI {self.url if self.url else self.uid}"
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue