Ensure HomeAssistant can still restart when a library file is missing#46664
Conversation
Fixes a problem were we cannot restart because we do not treat missing library files the same as missing or non-importable python files.
|
@OnFreund can you give this a try? |
|
thanks @bdraco. Will give it a try over the weekend (since it's only happening in my prod environment). |
|
LGTM PS: Or did Python previously have some magic to remove |
It previously worked before python 3.9 so I think the magic was removed. I haven't actually tracked down the code change in cpython though. |
bisects to this commit in cpython |
|
Also it looks like 3.8 and 3.7 will have the issue in the next release since https://bugs.python.org/issue41976 is backported python/cpython#22598 |
Proposed change
Fixes a problem were we cannot restart because we do not treat
missing library files the same as missing or non-importable
python files.
Fixes restart problem here (note that the underly python regression https://bugs.python.org/issue42580 still exists that uncovered this in the first place)
#45918 (comment)
Type of change
Example entry for
configuration.yaml:# Example configuration.yamlAdditional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: