From e2edbc425990094a1605c2eeb1208d109a3ebcee Mon Sep 17 00:00:00 2001 From: shbatm Date: Fri, 27 Jan 2023 21:16:28 -0600 Subject: [PATCH] Check for missing ISY994 Z-Wave Properties (#86829) * Check for missing Z-Wave Properties * Fix black from mobile --- homeassistant/components/isy994/helpers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/isy994/helpers.py b/homeassistant/components/isy994/helpers.py index e3e21dbfd4f..b190638fb35 100644 --- a/homeassistant/components/isy994/helpers.py +++ b/homeassistant/components/isy994/helpers.py @@ -313,7 +313,11 @@ def _generate_device_info(node: Node) -> DeviceInfo: model += f" ({node.type})" # 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[ ATTR_MANUFACTURER ] = f"Z-Wave MfrID:{int(node.zwave_props.mfr_id):#0{6}x}"