Add data description for Onkyo config flow (#132349)

This commit is contained in:
Artur Pragacz 2024-12-05 21:15:40 +01:00 committed by GitHub
parent 5fdd705edf
commit 1ca2f3393c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 6 deletions

View File

@ -7,10 +7,7 @@ rules:
This integration uses a push API. No polling required. This integration uses a push API. No polling required.
brands: done brands: done
common-modules: done common-modules: done
config-flow: config-flow: done
status: todo
comment: |
The data_descriptions are missing.
config-flow-test-coverage: config-flow-test-coverage:
status: todo status: todo
comment: | comment: |

View File

@ -10,18 +10,28 @@
"manual": { "manual": {
"data": { "data": {
"host": "[%key:common::config_flow::data::host%]" "host": "[%key:common::config_flow::data::host%]"
},
"data_description": {
"host": "Hostname or IP address of the receiver."
} }
}, },
"eiscp_discovery": { "eiscp_discovery": {
"data": { "data": {
"device": "[%key:common::config_flow::data::device%]" "device": "[%key:common::config_flow::data::device%]"
},
"data_description": {
"device": "Select the receiver to configure."
} }
}, },
"configure_receiver": { "configure_receiver": {
"description": "Configure {name}", "description": "Configure {name}",
"data": { "data": {
"volume_resolution": "Number of steps it takes for the receiver to go from the lowest to the highest possible volume", "volume_resolution": "Volume resolution",
"input_sources": "List of input sources supported by the receiver" "input_sources": "Input sources"
},
"data_description": {
"volume_resolution": "Number of steps it takes for the receiver to go from the lowest to the highest possible volume.",
"input_sources": "List of input sources supported by the receiver."
} }
} }
}, },
@ -43,6 +53,9 @@
"init": { "init": {
"data": { "data": {
"max_volume": "Maximum volume limit (%)" "max_volume": "Maximum volume limit (%)"
},
"data_description": {
"max_volume": "Maximum volume limit as a percentage. This will associate Home Assistant's maximum volume to this value on the receiver, i.e., if you set this to 50%, then setting the volume to 100% in Home Assistant will cause the volume on the receiver to be set to 50% of its maximum value."
} }
} }
} }