mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix zwave_js device condition bug (#66626)
This commit is contained in:
parent
8f4ec89be6
commit
d29acadebd
@ -141,18 +141,17 @@ async def async_get_conditions(
|
||||
conditions.append({**base_condition, CONF_TYPE: NODE_STATUS_TYPE})
|
||||
|
||||
# Config parameter conditions
|
||||
for config_value in node.get_configuration_values().values():
|
||||
conditions.extend(
|
||||
[
|
||||
{
|
||||
**base_condition,
|
||||
CONF_VALUE_ID: config_value.value_id,
|
||||
CONF_TYPE: CONFIG_PARAMETER_TYPE,
|
||||
CONF_SUBTYPE: generate_config_parameter_subtype(config_value),
|
||||
}
|
||||
for config_value in node.get_configuration_values().values()
|
||||
]
|
||||
)
|
||||
conditions.extend(
|
||||
[
|
||||
{
|
||||
**base_condition,
|
||||
CONF_VALUE_ID: config_value.value_id,
|
||||
CONF_TYPE: CONFIG_PARAMETER_TYPE,
|
||||
CONF_SUBTYPE: generate_config_parameter_subtype(config_value),
|
||||
}
|
||||
for config_value in node.get_configuration_values().values()
|
||||
]
|
||||
)
|
||||
|
||||
return conditions
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user