Use literal string interpolation in integrations B-D (f-strings) (#26378)

This commit is contained in:
Franck Nijhof authored and Pascal Vizeli committed 2019-09-03 17:09:59 +02:00
1 parent 105461edb5
commit 6a24d893c8
52 files changed
+116 -126

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ class DaikinZoneSwitch(ToggleEntity):
@property
def unique_id(self):
"""Return a unique ID."""
return "{}-zone{}".format(self._api.mac, self._zone_id)
return f"{self._api.mac}-zone{self._zone_id}"
@property
def icon(self):