mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 22:40:44 +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
@@ -117,7 +117,7 @@ class FoobotSensor(Entity):
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return the unique id of this entity."""
|
||||
return "{}_{}".format(self._uuid, self.type)
|
||||
return f"{self._uuid}_{self.type}"
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
|
||||
Reference in New Issue
Block a user