mirror of
https://github.com/elisspace/core.git
synced 2026-09-29 05:49:53 +00:00
Use literal string interpolation in integrations R-S (f-strings) (#26392)
This commit is contained in:
committed by
Pascal Vizeli
parent
7203027cbf
commit
445c741b30
@@ -94,7 +94,7 @@ class RedditSensor(Entity):
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
return "reddit_{}".format(self._subreddit)
|
||||
return f"reddit_{self._subreddit}"
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
||||
Reference in New Issue
Block a user