jcarbaugh / python-roku

Screw remotes. Control your Roku with Python.
https://pypi.python.org/pypi/roku
BSD 3-Clause "New" or "Revised" License
294 stars 95 forks source link

Added query for device info #9

Closed ncmiller closed 8 years ago

ncmiller commented 8 years ago

Added devinfo() to Roku class in core.py, which issues a GET on 'query/device-info' and parses out a few interesting fields.

This allows me to resolve ncmiller/roku-cli/issues/1.

jcarbaugh commented 8 years ago

Thanks much for the PR! Would you be open to changing the name of the property to either device_info or just info? I'd like it to be explicit since devinfo might be inferred to mean development info. Just plain info might be okay too since a Roku object represents a single device.

ncmiller commented 8 years ago

Good suggestion. I'm a little conflicted with info, because that's the name of a command. In fact, that was the original name I used, but testCommands failed because of the name clash. So I lean slightly towards device_info. Is that okay? If so, I can update the PR.

jcarbaugh commented 8 years ago

@ncmiller oh, good call with the info conflict. Yeah, let's got with device_info then. Very much appreciated!

ncmiller commented 8 years ago

Let me know if there's anything else you'd like to see before merging. Thanks!

jcarbaugh commented 8 years ago

Thanks for making the change!