Add config flow for braviatv integration (#33774)
* Run scripts * Improvement strings * Fix FlowOptions update listener * Update .ceveragerc * Add tests * Better strings * Add test for OptionsFlow * Run gen_requirements_all.py once again * Fix pylint errors * Log error when there is no bravia.conf file during import * Improvement strings * Use braviarc object from hass.data in options flow * Use async_add_executor_job for IO * Fix options flow test * Fix tests * Remove host_reachable method * Remove dependencies * Change setup_platform method to async * Remove calling system_info * Save mac in the config entry * Fix get ignore sources * Fix read config from file * Remove the side effect from init * Fix user_input for user step * Switch OrderedDict to dict * New config_entry instance for each test * Revert change * Patch async_setup_entry in test_import * Change a way to create source list * Consolidate repeated block of code * Update tests * Suggested change Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * Suggested channge Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * Suggested change * Patch async_setup_entry * Remove unnecesary if * suggested change * Suggested change * Fix tests * Fix pylint error Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
1 parent
075030f15a
commit
6dc6f2d099
12 files changed
+642
-124
No files matched your search
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"config": {
|
||||
"title": "Sony Bravia TV",
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Sony Bravia TV",
|
||||
"description": "Set up Sony Bravia TV integration. If you have problems with configuration go to: https://www.home-assistant.io/integrations/braviatv \n\nEnsure that your TV is turned on.",
|
||||
"data": {
|
||||
"host": "TV hostname or IP address"
|
||||
}
|
||||
},
|
||||
"authorize": {
|
||||
"title": "Authorize Sony Bravia TV",
|
||||
"description": "Enter the PIN code shown on the Sony Bravia TV. \n\nIf the PIN code is not shown, you have to unregister Home Assistant on your TV, go to: Settings -> Network -> Remote device settings -> Unregister remote device.",
|
||||
"data": {
|
||||
"pin": "PIN code"
|
||||
}
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"invalid_host": "Invalid hostname or IP address.",
|
||||
"cannot_connect": "Failed to connect, invalid host or PIN code.",
|
||||
"unsupported_model": "Your TV model is not supported."
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "This TV is already configured."
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Options for Sony Bravia TV",
|
||||
"data": {
|
||||
"ignored_sources": "List of ignored sources"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user