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

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: