Use literal string interpolation in integrations B-D (f-strings) (#26378)
This commit is contained in:
parent
105461edb5
commit
6a24d893c8
52 changed files with 116 additions and 126 deletions
|
@ -58,7 +58,7 @@ class DaikinClimateSensor(Entity):
|
|||
@property
|
||||
def unique_id(self):
|
||||
"""Return a unique ID."""
|
||||
return "{}-{}".format(self._api.mac, self._device_attribute)
|
||||
return f"{self._api.mac}-{self._device_attribute}"
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue