benknight / hue-alfred-workflow

An Alfred workflow for controlling Philips Hue lights.
367 stars 34 forks source link

Handle multiple queries at once #57

Closed scholzie closed 3 years ago

scholzie commented 3 years ago

The documentation says that this action can handle multiple queries passed into it when separated with a |, but it looks like that wasn't actually implemented anywhere. This enables that behavior, and (should) resolve #51.

scholzie commented 3 years ago

There might be a more robust way to handle this, and the additional creation of a list at L#190 isn't strictly necessary, but it gets the job done without cluttering up the for loop.

benknight commented 3 years ago

Sorry for the delay. Thanks for this. I'm happy to merge as is, but if I would love to some how move this logic into an abstraction layer so that deconz-specific logic is abstracted away from the procedural code.