Improve string formatting v9 (#34050)
* Improve string formatting v9 * Address review comments
This commit is contained in:
1 parent
5aca16ef01
commit
b2af1de273
21 files changed
+47
-72
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user