Remove dead code

This commit is contained in:
Bo Maryniuk 2015-10-14 01:33:47 +02:00 committed by C. R. Oldham
parent 6a08d2b6b5
commit cd00c5d99f

View file

@ -30,7 +30,6 @@ from salt.exceptions import (CommandExecutionError, MinionError)
__proxyenabled__ = ['philips_hue']
GRAINS_CACHE = {}
CONFIG = {}
log = logging.getLogger(__file__)
@ -76,24 +75,6 @@ def init(cnf):
CONFIG['url'] = "http://{0}/api/{1}".format(host, user)
def grains():
'''
Get the grains from the proxied device
'''
return grains_refresh()
def grains_refresh():
'''
Refresh the grains from the proxied device
'''
if not GRAINS_CACHE:
GRAINS_CACHE['vendor'] = 'Philips'
GRAINS_CACHE['product'] = 'Hue Lamps'
return GRAINS_CACHE
def ping(*args, **kw):
'''
Ping the lamps.