Use literal string interpolation in integrations R-S (f-strings) (#26392)

This commit is contained in:
Franck Nijhof
2019-09-03 21:14:39 +02:00
committed by Pascal Vizeli
parent 7203027cbf
commit 445c741b30
69 changed files with 129 additions and 149 deletions
@@ -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: