Use literal string interpolation in integrations R-S (f-strings) (#26392)
This commit is contained in:
1 parent
7203027cbf
commit
445c741b30
69 files changed
+129
-149
No files matched your search
@@ -65,7 +65,7 @@ class SwitcherControl(SwitchDevice):
|
||||
@property
|
||||
def unique_id(self) -> str:
|
||||
"""Return a unique ID."""
|
||||
return "{}-{}".format(self._device_data.device_id, self._device_data.mac_addr)
|
||||
return f"{self._device_data.device_id}-{self._device_data.mac_addr}"
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
|
||||
Reference in new issue
Block a user