mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Use literal string interpolation in core (f-strings) (#26166)
This commit is contained in:
committed by
Paulus Schoutsen
parent
1efa29d6ff
commit
decf13b948
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user