Use literal string interpolation in core (f-strings) (#26166)
This commit is contained in:
1 parent
1efa29d6ff
commit
decf13b948
67 files changed
+180
-246
No files matched your search
@@ -33,7 +33,7 @@ CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
||||
|
||||
def setup(hass, config):
|
||||
"""Set up Zeroconf and make Home Assistant discoverable."""
|
||||
zeroconf_name = "{}.{}".format(hass.config.location_name, ZEROCONF_TYPE)
|
||||
zeroconf_name = f"{hass.config.location_name}.{ZEROCONF_TYPE}"
|
||||
|
||||
params = {
|
||||
"version": __version__,
|
||||
|
||||
Reference in new issue
Block a user