Add config flow to roku (#31988)
* create a dedicated const.py * add DEFAULT_PORT to const.py * work on config flow conversion. * remove discovery. * work on config flow and add tests. other cleanup. * work on config flow and add tests. other cleanup. * add quality scale to manifest. * work on config flow and add tests. other cleanup. * review tweaks. * Update manifest.json * catch more specific errors * catch more errors. * impprt specific exceptions * import specific exceptions * Update __init__.py * Update config_flow.py * Update media_player.py * Update remote.py * Update media_player.py * Update remote.py * Update media_player.py * Update remote.py * Update config_flow.py * Update config_flow.py * Update media_player.py * Update __init__.py * Update __init__.py * Update config_flow.py * Update test_config_flow.py * Update config_flow.py * Update __init__.py * Update test_config_flow.py * Update remote.py * Update test_init.py * Update test_init.py * Update media_player.py * Update media_player.py * Update media_player.py
This commit is contained in:
1 parent
6e95b90f42
commit
cf8dfdae47
16 files changed
+716
-125
No files matched your search
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"config": {
|
||||
"title": "Roku",
|
||||
"flow_title": "Roku: {name}",
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Roku",
|
||||
"description": "Enter your Roku information.",
|
||||
"data": {
|
||||
"host": "Host or IP address"
|
||||
}
|
||||
},
|
||||
"ssdp_confirm": {
|
||||
"title": "Roku",
|
||||
"description": "Do you want to set up {name}? Manual configurations for this device in the yaml files will be overwritten.",
|
||||
"data": {}
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"cannot_connect": "Failed to connect, please try again",
|
||||
"unknown": "Unexpected error"
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "Roku device is already configured"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user