mirror of
https://github.com/home-assistant/core.git
synced 2025-11-04 16:39:28 +00:00
Use literal string interpolation in integrations T-W (f-strings) (#26394)
This commit is contained in:
committed by
Pascal Vizeli
parent
cde09062c4
commit
ef0e9431b6
@@ -32,7 +32,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
host = config.get(CONF_HOST)
|
||||
port = config.get(CONF_PORT)
|
||||
name = config.get(CONF_NAME)
|
||||
url = "http://{}:{}/api/LiveData.xml".format(host, port)
|
||||
url = f"http://{host}:{port}/api/LiveData.xml"
|
||||
|
||||
gateway = Ted5000Gateway(url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user