Use literal string interpolation in integrations H-J (f-strings) (#26380)
This commit is contained in:
parent
13bb2ea35a
commit
f9edec19ad
59 changed files with 128 additions and 139 deletions
|
@ -46,7 +46,7 @@ class IotaBalanceSensor(IotaDevice):
|
|||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
return "{} Balance".format(self._name)
|
||||
return f"{self._name} Balance"
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue