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

+1 -1
View File
@@ -112,7 +112,7 @@ class NetdataSensor(Entity):
@property
def name(self):
"""Return the name of the sensor."""
return "{} {}".format(self._name, self._sensor_name)
return f"{self._name} {self._sensor_name}"
@property
def unit_of_measurement(self):