mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Adjust scripts for compatibility with Python 3.14 (#146774)
This commit is contained in:
@ -46,10 +46,8 @@ def run(args: list[str]) -> int:
|
||||
|
||||
config_dir = extract_config_dir()
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
if not is_virtual_env():
|
||||
loop.run_until_complete(async_mount_local_lib_path(config_dir))
|
||||
asyncio.run(async_mount_local_lib_path(config_dir))
|
||||
|
||||
_pip_kwargs = pip_kwargs(config_dir)
|
||||
|
||||
|
@ -43,7 +43,7 @@ def mock_is_file():
|
||||
"""Mock is_file."""
|
||||
# All files exist except for the old entity registry file
|
||||
with patch(
|
||||
"os.path.isfile", lambda path: not path.endswith("entity_registry.yaml")
|
||||
"os.path.isfile", lambda path: not str(path).endswith("entity_registry.yaml")
|
||||
):
|
||||
yield
|
||||
|
||||
|
Reference in New Issue
Block a user