fix: Unparseable config when using the low-performance profile (#1570)

* The `low-performance` profile itself had parse errors: fix them!
* Do not silently swallow override parse errors, they are always a user issue
* Minor error message rendering improvements to show multiple pieces of context
This commit is contained in:
Dermot Duffy
2024-09-22 15:08:37 -07:00
committed by GitHub
parent a4417e8a3d
commit 766f3422a9
20 changed files with 137 additions and 88 deletions
+5 -5
View File
@@ -61,13 +61,13 @@ export const LOW_PERFORMANCE_PROFILE = {
[CONF_TIMELINE_SHOW_RECORDINGS]: false,
// Take no automatic media actions.
[CONF_LIVE_AUTO_MUTE]: 'never' as const,
[CONF_MEDIA_VIEWER_AUTO_PLAY]: 'never' as const,
[CONF_MEDIA_VIEWER_AUTO_PAUSE]: 'never' as const,
[CONF_MEDIA_VIEWER_AUTO_MUTE]: 'never' as const,
[CONF_LIVE_AUTO_MUTE]: [],
[CONF_MEDIA_VIEWER_AUTO_PLAY]: [],
[CONF_MEDIA_VIEWER_AUTO_PAUSE]: [],
[CONF_MEDIA_VIEWER_AUTO_MUTE]: [],
// Always unload resources that are lazily loaded.
[CONF_LIVE_LAZY_UNLOAD]: 'all' as const,
[CONF_LIVE_LAZY_UNLOAD]: ['unselected', 'hidden'],
// Media carousels do not drag.
[CONF_LIVE_DRAGGABLE]: false,