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 E-G (f-strings) (#26379)

This commit is contained in:
Franck Nijhof
2019-09-03 17:10:56 +02:00
committed by Pascal Vizeli
parent 6a24d893c8
commit fa79ef1220
45 changed files with 87 additions and 92 deletions

View File

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