1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Improve string formatting v4 (#33668)

* Improve string formatting v4

* Use normal strings instead of f-strings

* Fix zeroconf test by adding back part of a condition
This commit is contained in:
springstan
2020-04-05 16:01:41 +02:00
committed by GitHub
parent b855177fe6
commit e3bcfb88e7
20 changed files with 43 additions and 47 deletions

View File

@@ -102,7 +102,7 @@ def explore_module(package, explore_children):
if not hasattr(module, "__path__"):
return found
for _, name, _ in pkgutil.iter_modules(module.__path__, package + "."):
for _, name, _ in pkgutil.iter_modules(module.__path__, f"{package}."):
found.append(name)
if explore_children:
@@ -169,10 +169,7 @@ def gather_requirements_from_manifests(errors, reqs):
continue
process_requirements(
errors,
integration.requirements,
f"homeassistant.components.{domain}",
reqs,
errors, integration.requirements, f"homeassistant.components.{domain}", reqs
)