mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02: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:
@ -13,7 +13,7 @@ def explore_module(package):
|
||||
module = importlib.import_module(package)
|
||||
if not hasattr(module, "__path__"):
|
||||
return []
|
||||
for _, name, _ in pkgutil.iter_modules(module.__path__, package + "."):
|
||||
for _, name, _ in pkgutil.iter_modules(module.__path__, f"{package}."):
|
||||
yield name
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user