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:
committed by
Pascal Vizeli
parent
13bb2ea35a
commit
f9edec19ad
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user