From 871d9ee0b4f6a358343515506afac47e46ebfb09 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 31 Mar 2026 17:39:42 +0200 Subject: [PATCH] Remove calendar and todo from unconditionally loaded integrations (#166951) Co-authored-by: Artur Pragacz <49985303+arturpragacz@users.noreply.github.com> --- homeassistant/bootstrap.py | 4 +++- tests/snapshots/test_bootstrap.ambr | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index ce411280772..226aec8f130 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -238,7 +238,9 @@ DEFAULT_INTEGRATIONS = { "timer", # # Base platforms: - *BASE_PLATFORMS, + # Note: Calendar and todo are not included to prevent them from registering + # their frontend panels when there are no calendar or todo integrations. + *(BASE_PLATFORMS - {"calendar", "todo"}), # # Integrations providing triggers and conditions for base platforms: "air_quality", diff --git a/tests/snapshots/test_bootstrap.ambr b/tests/snapshots/test_bootstrap.ambr index 67d20710aa4..8e21e77d4f8 100644 --- a/tests/snapshots/test_bootstrap.ambr +++ b/tests/snapshots/test_bootstrap.ambr @@ -19,7 +19,6 @@ 'blueprint', 'brands', 'button', - 'calendar', 'camera', 'climate', 'config', @@ -94,7 +93,6 @@ 'text', 'time', 'timer', - 'todo', 'trace', 'tts', 'update', @@ -129,7 +127,6 @@ 'blueprint', 'brands', 'button', - 'calendar', 'camera', 'climate', 'config', @@ -203,7 +200,6 @@ 'text', 'time', 'timer', - 'todo', 'trace', 'tts', 'update',