mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove dead code
This commit is contained in:
parent
6a08d2b6b5
commit
cd00c5d99f
1 changed files with 0 additions and 19 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue