mirror of
https://github.com/home-assistant/core
synced 2024-09-06 10:29:55 +02: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})
|
conditions.append({**base_condition, CONF_TYPE: NODE_STATUS_TYPE})
|
||||||
|
|
||||||
# Config parameter conditions
|
# Config parameter conditions
|
||||||
for config_value in node.get_configuration_values().values():
|
conditions.extend(
|
||||||
conditions.extend(
|
[
|
||||||
[
|
{
|
||||||
{
|
**base_condition,
|
||||||
**base_condition,
|
CONF_VALUE_ID: config_value.value_id,
|
||||||
CONF_VALUE_ID: config_value.value_id,
|
CONF_TYPE: CONFIG_PARAMETER_TYPE,
|
||||||
CONF_TYPE: CONFIG_PARAMETER_TYPE,
|
CONF_SUBTYPE: generate_config_parameter_subtype(config_value),
|
||||||
CONF_SUBTYPE: generate_config_parameter_subtype(config_value),
|
}
|
||||||
}
|
for config_value in node.get_configuration_values().values()
|
||||||
for config_value in node.get_configuration_values().values()
|
]
|
||||||
]
|
)
|
||||||
)
|
|
||||||
|
|
||||||
return conditions
|
return conditions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user