Use literal string interpolation in integrations E-G (f-strings) (#26379)
This commit is contained in:
parent
6a24d893c8
commit
fa79ef1220
45 changed files with 87 additions and 92 deletions
|
@ -108,7 +108,7 @@ class FidoSensor(Entity):
|
|||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
return "{} {} {}".format(self.client_name, self._number, self._name)
|
||||
return f"{self.client_name} {self._number} {self._name}"
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue