FIX: zigbee2mqtt /get calls require a property field specified on the message
This commit is contained in:
parent
cebd79079b
commit
cc839620cf
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ class ZigbeeMqttPlugin(MqttPlugin):
|
||||||
:return: Key->value map of the device properties.
|
:return: Key->value map of the device properties.
|
||||||
"""
|
"""
|
||||||
properties = self.publish(topic=self._topic(device + '/get'),
|
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:
|
if property:
|
||||||
assert property in properties, 'No such property: ' + property
|
assert property in properties, 'No such property: ' + property
|
||||||
|
|
Loading…
Reference in a new issue