Fix for `No converter available` warnings on zigbee2mqtt

Only include readable (not state-only) properties on the payload sent to
to `zigbee2mqtt/<device>/get`.
This commit is contained in:
Fabio Manganiello 2022-10-31 00:51:26 +01:00
parent a1cf671334
commit d7214c4c83
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 2 additions and 2 deletions

View File

@ -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: