Add has_firmware_update_cc
bool to zwave_js/node_status cmd (#87310)
* Add `has_firmware_update_cc` bool to zwave_js/node_status cmd * fix test * Switch order of equality check
This commit is contained in:
parent
8cd5106c15
commit
8aa64c8008
3 changed files with 6 additions and 1 deletions
|
@ -374,6 +374,10 @@ def node_status(node: Node) -> dict[str, Any]:
|
|||
"zwave_plus_version": node.zwave_plus_version,
|
||||
"highest_security_class": node.highest_security_class,
|
||||
"is_controller_node": node.is_controller_node,
|
||||
"has_firmware_update_cc": any(
|
||||
cc.id == CommandClass.FIRMWARE_UPDATE_MD.value
|
||||
for cc in node.command_classes
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue