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
|
@ -325,7 +325,7 @@ class WithingsHealthSensor(Entity):
|
|||
@property
|
||||
def name(self) -> str:
|
||||
"""Return the name of the sensor."""
|
||||
return "Withings {} {}".format(self._attribute.measurement, self._slug)
|
||||
return f"Withings {self._attribute.measurement} {self._slug}"
|
||||
|
||||
@property
|
||||
def unique_id(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue