Use literal string interpolation in integrations H-J (f-strings) (#26380)
This commit is contained in:
parent
13bb2ea35a
commit
f9edec19ad
59 changed files with 128 additions and 139 deletions
|
@ -44,8 +44,8 @@ class HitronCODADeviceScanner(DeviceScanner):
|
|||
"""Initialize the scanner."""
|
||||
self.last_results = []
|
||||
host = config[CONF_HOST]
|
||||
self._url = "http://{}/data/getConnectInfo.asp".format(host)
|
||||
self._loginurl = "http://{}/goform/login".format(host)
|
||||
self._url = f"http://{host}/data/getConnectInfo.asp"
|
||||
self._loginurl = f"http://{host}/goform/login"
|
||||
|
||||
self._username = config.get(CONF_USERNAME)
|
||||
self._password = config.get(CONF_PASSWORD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue