mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Implement lights method.
This commit is contained in:
parent
bfbe4160b2
commit
cc5ee382c5
1 changed files with 7 additions and 0 deletions
|
@ -103,6 +103,13 @@ def _get_devices(params):
|
|||
|
||||
|
||||
# Callers
|
||||
def call_lights(*args, **kwargs):
|
||||
'''
|
||||
Get info about available lamps.
|
||||
'''
|
||||
return json.loads(requests.get(CONFIG['url'] + "/lights").content)
|
||||
|
||||
|
||||
def call_ping(*args, **kwargs):
|
||||
'''
|
||||
Ping the lamps
|
||||
|
|
Loading…
Add table
Reference in a new issue