Requirements
Current Behavior
Each of the four bundled theme files (mushroom.yaml, mushroom-shadow.yaml, mushroom-square.yaml, mushroom-square-shadow.yaml) ends with:
modes:
light: {}
dark: {}
HA's frontend validator rejects this at startup with one error per theme:
Theme Mushroom [Square] [Shadow] is invalid: must contain at least one of light, dark. for dictionary value @ data['modes']
Four boot errors per startup (one per theme), and additional errors each time themes get reloaded.
Expected Behavior
No validation errors. Themes load and remain selectable.
Steps To Reproduce
- Install Mushroom v5.1.1 on HA 2026.6.1
- Restart Home Assistant
- Check the core log: four "Theme ... is invalid" errors appear
Environment
- HA Version: 2026.6.1
- Mushroom: 5.1.1
- Browser: n/a (server-side validator)
Anything else?
The empty modes: light:{} dark:{} blocks are semantically a no-op (no overrides specified for either mode), so the cleanest fix is to drop the modes: key entirely from mushroom-shadow.yaml, mushroom-square.yaml, and mushroom-square-shadow.yaml. For mushroom.yaml specifically, since the only content was the modes: block, the top-level key needs Mushroom: {} to remain a valid theme dict.
I searched open issues for "light, dark", modes invalid, and theme invalid and none match. Happy to send a PR if useful.
Requirements
Current Behavior
Each of the four bundled theme files (
mushroom.yaml,mushroom-shadow.yaml,mushroom-square.yaml,mushroom-square-shadow.yaml) ends with:HA's frontend validator rejects this at startup with one error per theme:
Four boot errors per startup (one per theme), and additional errors each time themes get reloaded.
Expected Behavior
No validation errors. Themes load and remain selectable.
Steps To Reproduce
Environment
Anything else?
The empty
modes: light:{} dark:{}blocks are semantically a no-op (no overrides specified for either mode), so the cleanest fix is to drop themodes:key entirely frommushroom-shadow.yaml,mushroom-square.yaml, andmushroom-square-shadow.yaml. Formushroom.yamlspecifically, since the only content was themodes:block, the top-level key needsMushroom: {}to remain a valid theme dict.I searched open issues for
"light, dark",modes invalid, andtheme invalidand none match. Happy to send a PR if useful.