Improve string formatting v9 (#34050)

* Improve string formatting v9

* Address review comments
This commit is contained in:
springstan 2020-04-12 17:18:09 +02:00 committed by GitHub
parent 5aca16ef01
commit b2af1de273
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 47 additions and 72 deletions

View file

@ -77,7 +77,7 @@ class PushBulletNotificationSensor(Entity):
@property
def name(self):
"""Return the name of the sensor."""
return "{} {}".format("Pushbullet", self._element)
return f"Pushbullet {self._element}"
@property
def state(self):