diff --git a/homeassistant/components/zwave_js/device_condition.py b/homeassistant/components/zwave_js/device_condition.py index ec8538e2b36..8bb151199d7 100644 --- a/homeassistant/components/zwave_js/device_condition.py +++ b/homeassistant/components/zwave_js/device_condition.py @@ -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