studioimaginaire / phue

A Python library for the Philips Hue system
Other
1.52k stars 267 forks source link

Data Returned is Inconsistent #83

Open geudrik opened 7 years ago

geudrik commented 7 years ago

For example, when I do bridge.get_group('Office'), I get a dictionary of text returned. But the client lib should, for example (and since currently I'm only working with lights), return {lights:[ {{ list of Light objects }} .. ] ... }

Additionally, the Light IDs returned via b.get_group() are unicode strings... not ints.

henryruhs commented 4 years ago

@geudrik Is totally right...

It would be better that get_group() returns a dictionary with nested phue.Light objects or an brandnew phue.Group object that has the same API.