Use literal string interpolation in integrations N-Q (f-strings) (#26391)
This commit is contained in:
1 parent
330ae0d885
commit
1c5e0123c9
62 files changed
+103
-113
No files matched your search
@@ -47,7 +47,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
zone_types = config.get(CONF_ZONE_TYPES)
|
||||
|
||||
try:
|
||||
client = nx584_client.Client("http://{}:{}".format(host, port))
|
||||
client = nx584_client.Client(f"http://{host}:{port}")
|
||||
zones = client.list_zones()
|
||||
except requests.exceptions.ConnectionError as ex:
|
||||
_LOGGER.error("Unable to connect to NX584: %s", str(ex))
|
||||
|
||||
Reference in new issue
Block a user