forked from platypush/platypush
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:
parent
a1cf671334
commit
d7214c4c83
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue