mirror of
https://github.com/elisspace/core.git
synced 2026-09-28 05:19:54 +00:00
Use literal string interpolation in integrations R-S (f-strings) (#26392)
This commit is contained in:
committed by
Pascal Vizeli
parent
7203027cbf
commit
445c741b30
@@ -96,7 +96,7 @@ class RovaSensor(Entity):
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name."""
|
||||
return "{}_{}".format(self.platform_name, self.sensor_key)
|
||||
return f"{self.platform_name}_{self.sensor_key}"
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
||||
Reference in New Issue
Block a user