Use literal string interpolation in integrations R-S (f-strings) (#26392)
This commit is contained in:
committed by
Pascal Vizeli
parent
7203027cbf
commit
445c741b30
@@ -121,7 +121,7 @@ class RingSensor(Entity):
|
||||
)
|
||||
self._state = None
|
||||
self._tz = str(hass.config.time_zone)
|
||||
self._unique_id = "{}-{}".format(self._data.id, self._sensor_type)
|
||||
self._unique_id = f"{self._data.id}-{self._sensor_type}"
|
||||
|
||||
async def async_added_to_hass(self):
|
||||
"""Register callbacks."""
|
||||
|
||||
Reference in New Issue
Block a user