From 0bdfe148b3544c46a1fdbdf25395d72212a85237 Mon Sep 17 00:00:00 2001 From: jkerdreux-imt <jerome.kerdreux@imt-atlantique.fr> Date: Fri, 31 Jan 2025 13:33:40 +0100 Subject: [PATCH] Fix pyright --- devices/protocols/ZwaveJS/xaal/zwavejs/gw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devices/protocols/ZwaveJS/xaal/zwavejs/gw.py b/devices/protocols/ZwaveJS/xaal/zwavejs/gw.py index c913426f..cef29476 100644 --- a/devices/protocols/ZwaveJS/xaal/zwavejs/gw.py +++ b/devices/protocols/ZwaveJS/xaal/zwavejs/gw.py @@ -53,7 +53,8 @@ class GW: logger.warning(f"{node.node_id} {node.device_config.manufacturer}/{node.device_config.label} ") for k in node.values: value = node.values.get(k) - print(f"{k} {value.property_name} => {value.value}") + if value: + print(f"{k} {value.property_name} => {value.value}") # pprint(node.data) -- GitLab