mirror of
https://github.com/elisspace/core.git
synced 2026-10-01 06:49:55 +00:00
Use literal string interpolation in integrations R-S (f-strings) (#26392)
This commit is contained in:
committed by
Pascal Vizeli
parent
7203027cbf
commit
445c741b30
@@ -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