From d7214c4c83f106c38ec469717d4f1ffc1d35d14e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 31 Oct 2022 00:51:26 +0100 Subject: [PATCH] Fix for `No converter available` warnings on zigbee2mqtt Only include readable (not state-only) properties on the payload sent to to `zigbee2mqtt//get`. --- platypush/plugins/zigbee/mqtt/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/zigbee/mqtt/__init__.py b/platypush/plugins/zigbee/mqtt/__init__.py index c1818c83be..04b3af1837 100644 --- a/platypush/plugins/zigbee/mqtt/__init__.py +++ b/platypush/plugins/zigbee/mqtt/__init__.py @@ -740,8 +740,8 @@ class ZigbeeMqttPlugin(MqttPlugin): # lgtm [py/missing-call-to-init] @staticmethod def build_device_get_request(values: List[Dict[str, Any]]) -> dict: def extract_value(value: dict, root: dict): - if not value.get('access', 1) & 0x1: - # Property not readable + if not value.get('access', 1) & 0x4: + # Property not readable/query-able return if 'features' not in value: