Merge pull request #28186 from plastikos/bug-philips_hue

philips_hue fails during unit tests.
This commit is contained in:
Mike Place 2015-10-22 08:08:14 -06:00
commit 45e75b21da

View File

@ -29,7 +29,7 @@ def _proxy():
'''
Get proxy.
'''
return __opts__['proxymodule']
return __opts__.get('proxymodule')
def __virtual__():
@ -37,6 +37,9 @@ def __virtual__():
Start the Philips HUE only for proxies.
'''
if not _proxy():
return False
def _mkf(cmd_name, doc):
def _cmd(*args, **kw):
return _proxy()[_proxy().loaded_base_name + "." + cmd_name](*args, **kw)