mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Support in service descriptions for input sections (#116100)
This commit is contained in:
@@ -990,6 +990,17 @@ async def test_async_get_all_descriptions_filter(hass: HomeAssistant) -> None:
|
||||
- light.ColorMode.COLOR_TEMP
|
||||
selector:
|
||||
number:
|
||||
advanced_stuff:
|
||||
fields:
|
||||
temperature:
|
||||
filter:
|
||||
supported_features:
|
||||
- alarm_control_panel.AlarmControlPanelEntityFeature.ARM_HOME
|
||||
attribute:
|
||||
supported_color_modes:
|
||||
- light.ColorMode.COLOR_TEMP
|
||||
selector:
|
||||
number:
|
||||
"""
|
||||
|
||||
domain = "test_domain"
|
||||
@@ -1024,6 +1035,17 @@ async def test_async_get_all_descriptions_filter(hass: HomeAssistant) -> None:
|
||||
test_service_schema = {
|
||||
"description": "",
|
||||
"fields": {
|
||||
"advanced_stuff": {
|
||||
"fields": {
|
||||
"temperature": {
|
||||
"filter": {
|
||||
"attribute": {"supported_color_modes": ["color_temp"]},
|
||||
"supported_features": [1],
|
||||
},
|
||||
"selector": {"number": None},
|
||||
},
|
||||
},
|
||||
},
|
||||
"temperature": {
|
||||
"filter": {
|
||||
"attribute": {"supported_color_modes": ["color_temp"]},
|
||||
|
||||
Reference in New Issue
Block a user