mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
Adjust scripts for compatibility with Python 3.14 (#146774)
This commit is contained in:
@@ -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