Use literal string interpolation in integrations N-Q (f-strings) (#26391)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-09-03 11:35:00 -07:00
1 parent 330ae0d885
commit 1c5e0123c9
62 files changed
+103 -113

No files matched your search

@@ -76,7 +76,7 @@ class OpenUvBinarySensor(OpenUvEntity, BinarySensorDevice):
@property
def unique_id(self) -> str:
"""Return a unique, HASS-friendly identifier for this entity."""
return "{0}_{1}_{2}".format(self._latitude, self._longitude, self._sensor_type)
return f"{self._latitude}_{self._longitude}_{self._sensor_type}"
async def async_added_to_hass(self):
"""Register callbacks."""