Use literal string interpolation in integrations N-Q (f-strings) (#26391)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-09-03 11:35:00 -07:00
1 parent 330ae0d885
commit 1c5e0123c9
62 files changed
+103 -113

No files matched your search

@@ -45,9 +45,9 @@ class OctoPrintBinarySensor(BinarySensorDevice):
"""Initialize a new OctoPrint sensor."""
self.sensor_name = sensor_name
if tool is None:
self._name = "{} {}".format(sensor_name, condition)
self._name = f"{sensor_name} {condition}"
else:
self._name = "{} {}".format(sensor_name, condition)
self._name = f"{sensor_name} {condition}"
self.sensor_type = sensor_type
self.api = api
self._state = False