mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Use literal string interpolation in integrations E-G (f-strings) (#26379)
This commit is contained in:
committed by
Pascal Vizeli
parent
6a24d893c8
commit
fa79ef1220
@@ -95,7 +95,7 @@ class EssentMeter(Entity):
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
return "Essent {} ({})".format(self._type, self._tariff)
|
||||
return f"Essent {self._type} ({self._tariff})"
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
||||
Reference in New Issue
Block a user