Use literal string interpolation in integrations X-Z (f-strings) (#26395)
This commit is contained in:
1 parent
445c741b30
commit
dae6895a95
36 files changed
+115
-137
No files matched your search
@@ -48,7 +48,7 @@ class YeelightNightlightModeSensor(BinarySensorDevice):
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
return "{} nightlight".format(self._device.name)
|
||||
return f"{self._device.name} nightlight"
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
|
||||
Reference in new issue
Block a user