home-assistant: ignore install method deprecation

This commit is contained in:
Martin Weinelt 2026-06-05 23:42:44 +02:00
commit d81453d943
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
3 changed files with 20 additions and 0 deletions

View file

@ -317,6 +317,9 @@ python3Packages.buildPythonApplication rec {
# No scaring our users about not running in a docker or a venv
./patches/pythonpath-is-a-venv.patch
# No scaring our users about our install method
./patches/nixos-was-never-supported.patch
# Patch path to ffmpeg binary
(replaceVars ./patches/ffmpeg-path.patch {
ffmpeg = "${lib.getExe ffmpeg-headless}";

View file

@ -0,0 +1,13 @@
diff --git a/homeassistant/components/homeassistant/__init__.py b/homeassistant/components/homeassistant/__init__.py
index 54c6454167b..026fda54578 100644
--- a/homeassistant/components/homeassistant/__init__.py
+++ b/homeassistant/components/homeassistant/__init__.py
@@ -420,7 +420,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
installation_type = info["installation_type"][15:]
if installation_type in {"Core", "Container"}:
- deprecated_method = installation_type == "Core"
+ deprecated_method = False
bit32 = _is_32_bit()
arch = info["arch"]
if bit32 and installation_type == "Container":

View file

@ -130,6 +130,10 @@ let
# [2026.6.1] AssertionError: assert <ConfigEntryState.LOADED: 'loaded'> is <ConfigEntryState.SETUP_RETRY: 'setup_retry'>
"test_usb_device_reactivity"
];
homeassistant = [
# disabled via nixos-was-never-supported.patch
"test_deprecated_installation_issue_core"
];
opendisplay = [
# [2026.6.0] Failed: Description not found for placeholder `reason` in component.opendisplay.exceptions.device_not_found.message
# https://github.com/home-assistant/core/pull/172909