* html5: Enable config flow * Add tests * attempt check create_issue * replace len with call_count * fix config flow tests * test user config * more tests * remove whitespace * Update homeassistant/components/html5/issues.py Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com> * Update homeassistant/components/html5/issues.py Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com> * fix config * Adjust issues log * lint * lint * rename create issue * fix typing * update codeowners * fix test * fix tests * Update issues.py * Update tests/components/html5/test_config_flow.py Co-authored-by: J. Nick Koston <nick@koston.org> * Update tests/components/html5/test_config_flow.py Co-authored-by: J. Nick Koston <nick@koston.org> * Update tests/components/html5/test_config_flow.py Co-authored-by: J. Nick Koston <nick@koston.org> * update from review * remove ternary * fix * fix missing service * fix tests * updates * adress review comments * fix indent * fix * fix format * cleanup from review * Restore config schema and use HA issue * Restore config schema and use HA issue --------- Co-authored-by: alexyao2015 <alexyao2015@users.noreply.github.com> Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Joostlek <joostlek@outlook.com>
45 lines
1.4 KiB
JSON
45 lines
1.4 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"data": {
|
|
"vapid_email": "[%key:common::config_flow::data::email%]",
|
|
"vapid_prv_key": "VAPID private key"
|
|
},
|
|
"data_description": {
|
|
"vapid_email": "Email to use for html5 push notifications.",
|
|
"vapid_prv_key": "If not specified, one will be automatically generated."
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"unknown": "Unknown error",
|
|
"invalid_prv_key": "Invalid private key"
|
|
},
|
|
"abort": {
|
|
"invalid_config": "Invalid configuration"
|
|
}
|
|
},
|
|
"issues": {
|
|
"deprecated_yaml_import_issue": {
|
|
"title": "HTML5 YAML configuration import failed",
|
|
"description": "Configuring HTML5 push notification using YAML has been deprecated. An automatic import of your existing configuration was attempted, but it failed.\n\nPlease remove the HTML5 push notification YAML configuration from your configuration.yaml file and reconfigure HTML5 push notification again manually."
|
|
}
|
|
},
|
|
"services": {
|
|
"dismiss": {
|
|
"name": "Dismiss",
|
|
"description": "Dismisses a html5 notification.",
|
|
"fields": {
|
|
"target": {
|
|
"name": "Target",
|
|
"description": "An array of targets."
|
|
},
|
|
"data": {
|
|
"name": "Data",
|
|
"description": "Extended information of notification. Supports tag."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|