Use literal string interpolation in integrations E-G (f-strings) (#26379)
This commit is contained in:
parent
6a24d893c8
commit
fa79ef1220
45 changed files with 87 additions and 92 deletions
|
@ -57,7 +57,7 @@ class BanSensor(Entity):
|
|||
|
||||
def __init__(self, name, jail, log_parser):
|
||||
"""Initialize the sensor."""
|
||||
self._name = "{} {}".format(name, jail)
|
||||
self._name = f"{name} {jail}"
|
||||
self.jail = jail
|
||||
self.ban_dict = {STATE_CURRENT_BANS: [], STATE_ALL_BANS: []}
|
||||
self.last_ban = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue