mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Use literal string interpolation in integrations B-D (f-strings) (#26378)
This commit is contained in:
committed by
Pascal Vizeli
parent
105461edb5
commit
6a24d893c8
@@ -95,7 +95,7 @@ class CurrencylayerSensor(Entity):
|
||||
self.rest.update()
|
||||
value = self.rest.data
|
||||
if value is not None:
|
||||
self._state = round(value["{}{}".format(self._base, self._quote)], 4)
|
||||
self._state = round(value[f"{self._base}{self._quote}"], 4)
|
||||
|
||||
|
||||
class CurrencylayerData:
|
||||
|
||||
Reference in New Issue
Block a user