mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Ignore stale directories (#23464)
* Ignore stale directories * Remove redundant tests * Revert "Remove redundant tests" * Print warning when skipping directories * Suggest to remove stale directory
This commit is contained in:
parent
0ecf152153
commit
2245ee98e3
@ -46,6 +46,13 @@ class Integration:
|
|||||||
if fil.is_file() or fil.name == '__pycache__':
|
if fil.is_file() or fil.name == '__pycache__':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
init = fil / '__init__.py'
|
||||||
|
if not init.exists():
|
||||||
|
print("Warning: {} missing, skipping directory. "
|
||||||
|
"If this is your development environment, "
|
||||||
|
"you can safely delete this folder.".format(init))
|
||||||
|
continue
|
||||||
|
|
||||||
integration = cls(fil)
|
integration = cls(fil)
|
||||||
integration.load_manifest()
|
integration.load_manifest()
|
||||||
integrations[integration.domain] = integration
|
integrations[integration.domain] = integration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user