fix: Don't hide menu in casting profile (#1590)

This commit is contained in:
Dermot Duffy
2024-09-27 18:52:16 -07:00
committed by GitHub
parent 464a68ba03
commit 8c5aebef03
3 changed files with 12 additions and 3 deletions
+12
View File
@@ -23,6 +23,16 @@ Casting Home Assistant dashboards comes with a number of caveats:
- The Javascript fullscreen API does not work (so the fullscreen button does not - The Javascript fullscreen API does not work (so the fullscreen button does not
work, but see below for an equivalent). work, but see below for an equivalent).
## The `casting` profile
The optional [casting profile](../configuration/profiles.md?id=casting) provides
some defaults to improve your casting experience. Use it like:
```yaml
profiles:
- casting
```
## Recommended configuration for Nest Hub ## Recommended configuration for Nest Hub
Using a `panel` dashboard with the following base configuration will result in Using a `panel` dashboard with the following base configuration will result in
@@ -38,6 +48,8 @@ cameras:
dimensions: dimensions:
aspect_ratio: 1024:600 aspect_ratio: 1024:600
aspect_ratio_mode: static aspect_ratio_mode: static
profile:
- casting
``` ```
### Result ### Result
-2
View File
@@ -5,11 +5,9 @@ import {
CONF_LIVE_CONTROLS_BUILTIN, CONF_LIVE_CONTROLS_BUILTIN,
CONF_LIVE_SHOW_IMAGE_DURING_LOAD, CONF_LIVE_SHOW_IMAGE_DURING_LOAD,
CONF_MEDIA_VIEWER_CONTROLS_BUILTIN, CONF_MEDIA_VIEWER_CONTROLS_BUILTIN,
CONF_MENU_STYLE,
} from '../../const.js'; } from '../../const.js';
export const CASTING_PROFILE = { export const CASTING_PROFILE = {
[CONF_MENU_STYLE]: 'none' as const,
[CONF_LIVE_AUTO_UNMUTE]: ['selected', 'visible'], [CONF_LIVE_AUTO_UNMUTE]: ['selected', 'visible'],
[CONF_DIMENSIONS_ASPECT_RATIO]: '16:9', [CONF_DIMENSIONS_ASPECT_RATIO]: '16:9',
[CONF_LIVE_CONTROLS_BUILTIN]: false, [CONF_LIVE_CONTROLS_BUILTIN]: false,
-1
View File
@@ -12,7 +12,6 @@ it('should contain expected defaults', () => {
'live.controls.builtin': false, 'live.controls.builtin': false,
'live.show_image_during_load': true, 'live.show_image_during_load': true,
'media_viewer.controls.builtin': false, 'media_viewer.controls.builtin': false,
'menu.style': 'none',
}); });
}); });