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
|
@ -88,7 +88,7 @@ class DINRelay(SwitchDevice):
|
|||
@property
|
||||
def name(self):
|
||||
"""Return the display name of this relay."""
|
||||
return "{}_{}".format(self._controller_name, self._name)
|
||||
return f"{self._controller_name}_{self._name}"
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue