Check for missing ISY994 Z-Wave Properties (#86829)
* Check for missing Z-Wave Properties * Fix black from mobilepull/87101/head
parent
bedf5fe6cd
commit
d33373f6ee
|
@ -313,7 +313,11 @@ def _generate_device_info(node: Node) -> DeviceInfo:
|
||||||
model += f" ({node.type})"
|
model += f" ({node.type})"
|
||||||
|
|
||||||
# Get extra information for Z-Wave Devices
|
# Get extra information for Z-Wave Devices
|
||||||
if node.protocol == PROTO_ZWAVE and node.zwave_props.mfr_id != "0":
|
if (
|
||||||
|
node.protocol == PROTO_ZWAVE
|
||||||
|
and node.zwave_props
|
||||||
|
and node.zwave_props.mfr_id != "0"
|
||||||
|
):
|
||||||
device_info[
|
device_info[
|
||||||
ATTR_MANUFACTURER
|
ATTR_MANUFACTURER
|
||||||
] = f"Z-Wave MfrID:{int(node.zwave_props.mfr_id):#0{6}x}"
|
] = f"Z-Wave MfrID:{int(node.zwave_props.mfr_id):#0{6}x}"
|
||||||
|
|
Loading…
Reference in New Issue