Use literal string interpolation in integrations X-Z (f-strings) (#26395)

This commit is contained in:
Franck Nijhof authored and Pascal Vizeli committed 2019-09-03 21:15:31 +02:00
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):