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',