Use literal string interpolation in integrations N-Q (f-strings) (#26391)
This commit is contained in:
parent
330ae0d885
commit
1c5e0123c9
62 changed files with 103 additions and 113 deletions
|
@ -61,7 +61,7 @@ class QSBinarySensor(QSEntity, BinarySensorDevice):
|
|||
@property
|
||||
def unique_id(self):
|
||||
"""Return a unique identifier for this sensor."""
|
||||
return "qs{}:{}".format(self.qsid, self.channel)
|
||||
return f"qs{self.qsid}:{self.channel}"
|
||||
|
||||
@property
|
||||
def device_class(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue