studioimaginaire / phue

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

run_scene error #129

Closed Psychokiller1888 closed 6 years ago

Psychokiller1888 commented 6 years ago

Hello! Thank you for your hardwork on this awesome package! I've run into an error:

Traceback (most recent call last): File "/usr/lib/python2.7/logging/init.py", line 861, in emit msg = self.format(record) File "/usr/lib/python2.7/logging/init.py", line 734, in format return fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 465, in format record.message = record.getMessage() File "/usr/lib/python2.7/logging/init.py", line 329, in getMessage msg = msg % self.args TypeError: not enough arguments for format string Logged from file phue.py, line 1187

When using "run_scene". I call run_scene with both group_name and scene_name of course. This only happens when the scene requested doesn't exist in the given group.

Could you also make "run_scene" return a boolean if it succeeded?

Psychokiller1888 commented 6 years ago

I don't get the logger problem. Well, there's a little issue, in the logger.warn, the tuple should be (scene_name, group_name) but still error thrown about not enough args