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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user