Use literal string interpolation in integrations T-W (f-strings) (#26394)
This commit is contained in:
1 parent
cde09062c4
commit
ef0e9431b6
50 files changed
+128
-132
No files matched your search
@@ -45,7 +45,7 @@ class TapsAffSensor(BinarySensorDevice):
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
return "{}".format(self._name)
|
||||
return f"{self._name}"
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
|
||||
Reference in new issue
Block a user