Use literal string interpolation in core (f-strings) (#26166)
This commit is contained in:
parent
1efa29d6ff
commit
decf13b948
67 changed files with 180 additions and 246 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue