Improve zwave_js device automation strings for config parameters (#66428)
* Improve zwave_js device automation strings for config parameters * rename things to be more clear * Match config file format
This commit is contained in:
parent
7cb0ce0eec
commit
113c3149c4
7 changed files with 45 additions and 33 deletions
|
@ -53,6 +53,7 @@ from .const import (
|
|||
from .device_automation_helpers import (
|
||||
CONF_SUBTYPE,
|
||||
VALUE_ID_REGEX,
|
||||
generate_config_parameter_subtype,
|
||||
get_config_parameter_value_schema,
|
||||
)
|
||||
from .helpers import async_get_node_from_device_id
|
||||
|
@ -165,7 +166,7 @@ async def async_get_actions(hass: HomeAssistant, device_id: str) -> list[dict]:
|
|||
CONF_TYPE: SERVICE_SET_CONFIG_PARAMETER,
|
||||
ATTR_CONFIG_PARAMETER: config_value.property_,
|
||||
ATTR_CONFIG_PARAMETER_BITMASK: config_value.property_key,
|
||||
CONF_SUBTYPE: f"{config_value.value_id} ({config_value.property_name})",
|
||||
CONF_SUBTYPE: generate_config_parameter_subtype(config_value),
|
||||
}
|
||||
for config_value in node.get_configuration_values().values()
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue