mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Use literal string interpolation in integrations E-G (f-strings) (#26379)
This commit is contained in:
committed by
Pascal Vizeli
parent
6a24d893c8
commit
fa79ef1220
@@ -142,7 +142,7 @@ def setup_gpmdp(hass, config, code, add_entities):
|
||||
name = config.get(CONF_NAME)
|
||||
host = config.get(CONF_HOST)
|
||||
port = config.get(CONF_PORT)
|
||||
url = "ws://{}:{}".format(host, port)
|
||||
url = f"ws://{host}:{port}"
|
||||
|
||||
if not code:
|
||||
request_configuration(hass, config, url, add_entities)
|
||||
|
||||
Reference in New Issue
Block a user