Implement lights method.

This commit is contained in:
Bo Maryniuk 2015-10-12 23:48:58 +02:00 committed by C. R. Oldham
parent bfbe4160b2
commit cc5ee382c5

View file

@ -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