diff --git a/salt/proxy/philips_hue.py b/salt/proxy/philips_hue.py index c786640711..b0cadd3d16 100644 --- a/salt/proxy/philips_hue.py +++ b/salt/proxy/philips_hue.py @@ -129,7 +129,8 @@ def _get_devices(params): if 'id' not in params: raise CommandExecutionError("Parameter ID is required.") - return [int(dev) for dev in params['id'].split(",")] + return type(params['id']) == int and [params['id']] \ + or [int(dev) for dev in params['id'].split(",")] # Callers