Skip to content

Commit

Permalink
get_device_prop_exp (#652)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Salomon <git@salo.mailrange.com>
  • Loading branch information
fsalomon and Fabian Salomon authored Mar 25, 2020
1 parent 83f2ea1 commit ccd1c42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions miio/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit ccd1c42

Please sign in to comment.