Improve string formatting v9 (#34050)

* Improve string formatting v9

* Address review comments
This commit is contained in:
springstan authored and GitHub committed 2020-04-12 17:18:09 +02:00
1 parent 5aca16ef01
commit b2af1de273
21 files changed
+47 -72

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ class RadarrSensor(Entity):
self.port = conf.get(CONF_PORT)
self.urlbase = conf.get(CONF_URLBASE)
if self.urlbase:
self.urlbase = "{}/".format(self.urlbase.strip("/"))
self.urlbase = f"{self.urlbase.strip('/')}/"
self.apikey = conf.get(CONF_API_KEY)
self.included = conf.get(CONF_INCLUDED)
self.days = int(conf.get(CONF_DAYS))