File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
homeassistant/components/ai_task Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
101101 vol .Schema ({str : STRUCTURE_FIELD_SCHEMA }),
102102 _validate_structure_fields ,
103103 ),
104- vol .Optional (ATTR_ATTACHMENTS ): vol . All (
105- cv . ensure_list , [ selector . MediaSelector ( {"accept" : ["*/*" ]})]
104+ vol .Optional (ATTR_ATTACHMENTS ): selector . MediaSelector (
105+ {"accept" : ["*/*" ], "multiple" : True }
106106 ),
107107 }
108108 ),
@@ -118,8 +118,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
118118 vol .Required (ATTR_TASK_NAME ): cv .string ,
119119 vol .Optional (ATTR_ENTITY_ID ): cv .entity_id ,
120120 vol .Required (ATTR_INSTRUCTIONS ): cv .string ,
121- vol .Optional (ATTR_ATTACHMENTS ): vol . All (
122- cv . ensure_list , [ selector . MediaSelector ( {"accept" : ["*/*" ]})]
121+ vol .Optional (ATTR_ATTACHMENTS ): selector . MediaSelector (
122+ {"accept" : ["*/*" ], "multiple" : True }
123123 ),
124124 }
125125 ),
You can’t perform that action at this time.
0 commit comments