Improve string formatting v5 (#33697)
* Improve string formatting v5 * Address review comments
This commit is contained in:
1 parent
39336d3ea3
commit
fca90a8ddc
46 files changed
+221
-252
No files matched your search
@@ -42,7 +42,7 @@ class N26CardSwitch(SwitchDevice):
|
||||
@property
|
||||
def name(self) -> str:
|
||||
"""Friendly name of the sensor."""
|
||||
return "card_{}".format(self._card["id"])
|
||||
return f"card_{self._card['id']}"
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
|
||||
Reference in new issue
Block a user