From 760c230d31e2beed8d031e846fb0bc43027898fb Mon Sep 17 00:00:00 2001 From: Fabian Salomon Date: Wed, 25 Mar 2020 20:35:41 +0400 Subject: [PATCH] get_device_prop_exp --- miio/gateway.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miio/gateway.py b/miio/gateway.py index f23c71ddc..8a0b58c15 100644 --- a/miio/gateway.py +++ b/miio/gateway.py @@ -122,6 +122,11 @@ def get_device_prop(self, sid, property): """Get the value of a property for given sid.""" return self.send("get_device_prop", [sid, property]) + @command(click.argument("sid"), click.argument("properties", nargs=-1)) + def get_device_prop_exp(self, sid, properties): + """Get the value of a bunch of properties for given sid.""" + return self.send("get_device_prop_exp", [[sid] + list(properties)]) + @command(click.argument("sid"), click.argument("property"), click.argument("value")) def set_device_prop(self, sid, property, value): """Set the device property."""