1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

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)