Fix Konnected pro options (#38848)
This commit is contained in:
1 parent
49edd91f4e
commit
8d8c1335c5
5 files changed
+56
-41
No files matched your search
@@ -71,7 +71,7 @@ KONN_PANEL_MODEL_NAMES = {
|
||||
}
|
||||
|
||||
OPTIONS_IO_ANY = vol.In([CONF_IO_DIS, CONF_IO_BIN, CONF_IO_DIG, CONF_IO_SWI])
|
||||
OPTIONS_IO_INPUT_ONLY = vol.In([CONF_IO_DIS, CONF_IO_BIN, CONF_IO_DIG])
|
||||
OPTIONS_IO_INPUT_ONLY = vol.In([CONF_IO_DIS, CONF_IO_BIN])
|
||||
OPTIONS_IO_OUTPUT_ONLY = vol.In([CONF_IO_DIS, CONF_IO_SWI])
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ CONFIG_ENTRY_SCHEMA = vol.Schema(
|
||||
|
||||
|
||||
class KonnectedFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
"""Handle a config flow for NEW_NAME."""
|
||||
"""Handle a config flow for Konnected Panels."""
|
||||
|
||||
VERSION = 1
|
||||
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
|
||||
@@ -810,6 +810,10 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
|
||||
step_id="options_misc",
|
||||
data_schema=vol.Schema(
|
||||
{
|
||||
vol.Required(
|
||||
CONF_DISCOVERY,
|
||||
default=self.current_opt.get(CONF_DISCOVERY, True),
|
||||
): bool,
|
||||
vol.Required(
|
||||
CONF_BLINK, default=self.current_opt.get(CONF_BLINK, True)
|
||||
): bool,
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
},
|
||||
"options_binary": {
|
||||
"title": "Configure Binary Sensor",
|
||||
"description": "Please select the options for the binary sensor attached to {zone}",
|
||||
"description": "{zone} options",
|
||||
"data": {
|
||||
"type": "Binary Sensor Type",
|
||||
"name": "Name (optional)",
|
||||
@@ -68,7 +68,7 @@
|
||||
},
|
||||
"options_digital": {
|
||||
"title": "Configure Digital Sensor",
|
||||
"description": "Please select the options for the digital sensor attached to {zone}",
|
||||
"description": "{zone} options",
|
||||
"data": {
|
||||
"type": "Sensor Type",
|
||||
"name": "Name (optional)",
|
||||
@@ -77,7 +77,7 @@
|
||||
},
|
||||
"options_switch": {
|
||||
"title": "Configure Switchable Output",
|
||||
"description": "Please select the output options for {zone}: state {state}",
|
||||
"description": "{zone} options: state {state}",
|
||||
"data": {
|
||||
"name": "Name (optional)",
|
||||
"activation": "Output when on",
|
||||
@@ -91,6 +91,7 @@
|
||||
"title": "Configure Misc",
|
||||
"description": "Please select the desired behavior for your panel",
|
||||
"data": {
|
||||
"discovery": "Respond to discovery requests on your network",
|
||||
"blink": "Blink panel LED on when sending state change",
|
||||
"override_api_host": "Override default Home Assistant API host panel URL",
|
||||
"api_host": "Override API host URL (optional)"
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
"name": "Name (optional)",
|
||||
"type": "Binary Sensor Type"
|
||||
},
|
||||
"description": "Please select the options for the binary sensor attached to {zone}",
|
||||
"description": "{zone} options",
|
||||
"title": "Configure Binary Sensor"
|
||||
},
|
||||
"options_digital": {
|
||||
@@ -50,7 +50,7 @@
|
||||
"poll_interval": "Poll Interval (minutes) (optional)",
|
||||
"type": "Sensor Type"
|
||||
},
|
||||
"description": "Please select the options for the digital sensor attached to {zone}",
|
||||
"description": "{zone} options",
|
||||
"title": "Configure Digital Sensor"
|
||||
},
|
||||
"options_io": {
|
||||
@@ -85,6 +85,7 @@
|
||||
"data": {
|
||||
"api_host": "Override API host URL (optional)",
|
||||
"blink": "Blink panel LED on when sending state change",
|
||||
"discovery": "Respond to discovery requests on your network",
|
||||
"override_api_host": "Override default Home Assistant API host panel URL"
|
||||
},
|
||||
"description": "Please select the desired behavior for your panel",
|
||||
@@ -99,7 +100,7 @@
|
||||
"pause": "Pause between pulses (ms) (optional)",
|
||||
"repeat": "Times to repeat (-1=infinite) (optional)"
|
||||
},
|
||||
"description": "Please select the output options for {zone}: state {state}",
|
||||
"description": "{zone} options: state {state}",
|
||||
"title": "Configure Switchable Output"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user