Use f-strings in integrations starting with "F"and"G" (#32150)
* Use f-strings in integrations starting with F * Use f-strings in tests for integrations starting with F * Use f-strings in integrations starting with G * Use f-strings in tests for integrations starting with G * Fix pylint error * Fix broken test
This commit is contained in:
1 parent
496bd3dddf
commit
ad102b3840
59 files changed
+219
-344
No files matched your search
@@ -164,7 +164,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
||||
"""Update lights."""
|
||||
await flux.async_flux_update()
|
||||
|
||||
service_name = slugify("{} {}".format(name, "update"))
|
||||
service_name = slugify(f"{name} update")
|
||||
hass.services.async_register(DOMAIN, service_name, async_update)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user