Use literal string interpolation in core (f-strings) (#26166)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-08-23 09:53:33 -07:00
1 parent 1efa29d6ff
commit decf13b948
67 files changed
+180 -246

No files matched your search

@@ -94,7 +94,7 @@ class IntegrationSensor(RestoreEntity):
self._state = 0
self._method = integration_method
self._name = name if name is not None else "{} integral".format(source_entity)
self._name = name if name is not None else f"{source_entity} integral"
if unit_of_measurement is None:
self._unit_template = "{}{}{}".format(