Use literal string interpolation in integrations H-J (f-strings) (#26380)

This commit is contained in:
Franck Nijhof 2019-09-03 17:27:14 +02:00 committed by Pascal Vizeli
parent 13bb2ea35a
commit f9edec19ad
59 changed files with 128 additions and 139 deletions

View file

@ -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)