fix: Don't hide menu in casting profile (#1590)
This commit is contained in:
@@ -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
|
||||
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
|
||||
|
||||
Using a `panel` dashboard with the following base configuration will result in
|
||||
@@ -38,6 +48,8 @@ cameras:
|
||||
dimensions:
|
||||
aspect_ratio: 1024:600
|
||||
aspect_ratio_mode: static
|
||||
profile:
|
||||
- casting
|
||||
```
|
||||
|
||||
### Result
|
||||
|
||||
@@ -5,11 +5,9 @@ import {
|
||||
CONF_LIVE_CONTROLS_BUILTIN,
|
||||
CONF_LIVE_SHOW_IMAGE_DURING_LOAD,
|
||||
CONF_MEDIA_VIEWER_CONTROLS_BUILTIN,
|
||||
CONF_MENU_STYLE,
|
||||
} from '../../const.js';
|
||||
|
||||
export const CASTING_PROFILE = {
|
||||
[CONF_MENU_STYLE]: 'none' as const,
|
||||
[CONF_LIVE_AUTO_UNMUTE]: ['selected', 'visible'],
|
||||
[CONF_DIMENSIONS_ASPECT_RATIO]: '16:9',
|
||||
[CONF_LIVE_CONTROLS_BUILTIN]: false,
|
||||
|
||||
@@ -12,7 +12,6 @@ it('should contain expected defaults', () => {
|
||||
'live.controls.builtin': false,
|
||||
'live.show_image_during_load': true,
|
||||
'media_viewer.controls.builtin': false,
|
||||
'menu.style': 'none',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user