FIX: zigbee2mqtt /get calls require a property field specified on the message

This commit is contained in:
Fabio Manganiello 2021-01-22 00:45:52 +01:00
parent cebd79079b
commit cc839620cf

View file

@ -334,7 +334,7 @@ class ZigbeeMqttPlugin(MqttPlugin):
:return: Key->value map of the device properties.
"""
properties = self.publish(topic=self._topic(device + '/get'),
reply_topic=self._topic(device), msg='', **self._mqtt_args(**kwargs)).output
reply_topic=self._topic(device), msg={'property': ''}, **self._mqtt_args(**kwargs)).output
if property:
assert property in properties, 'No such property: ' + property