mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-12-10 00:30:02 -06:00
Add documentation for multiple in media selector (#42167)
This commit is contained in:
parent
59889e2037
commit
ff5cd2cc76
@ -1059,6 +1059,13 @@ accept:
|
||||
List of media types the user is allowed to select.
|
||||
type: list
|
||||
required: false
|
||||
multiple:
|
||||
description: >
|
||||
Allows selecting multiple media items. If set to `true`, the resulting value of
|
||||
this selector will be a list instead of a single object.
|
||||
type: boolean
|
||||
default: false
|
||||
required: false
|
||||
{% endconfiguration %}
|
||||
|
||||
The output of the media selector, is an mapping with information about
|
||||
@ -1105,6 +1112,19 @@ metadata:
|
||||
media-source://tts/cloud?message=TTS+Message&language=en-US&gender=female
|
||||
```
|
||||
|
||||
Example output when `multiple` is set to `true` (a list of media objects):
|
||||
|
||||
```yaml
|
||||
- media_content_id: media-source://media_source/local/image1.jpg
|
||||
media_content_type: image/jpeg
|
||||
metadata:
|
||||
title: image1.jpg
|
||||
- media_content_id: media-source://media_source/local/image2.jpg
|
||||
media_content_type: image/jpeg
|
||||
metadata:
|
||||
title: image2.jpg
|
||||
```
|
||||
|
||||
## Number selector
|
||||
|
||||
The number selector shows either a number input or a slider input, that allows
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user