__author__ = 'hira'


import requests
import json


def get_bridge_ips():
    res = requests.get('http://www.meethue.com/api/nupnp').text
    data = json.loads(res)
    return [map['internalipaddress'] for map in data]

print(get_bridge_ips())

Enable finding Hue bridge on network.
Enable finding Hue bridge on network.

- __author__ = 'hira'
+ import requests
+ import json
  
  
+ def get_bridge_ips():
+     res = requests.get('http://www.meethue.com/api/nupnp').text
+     data = json.loads(res)
+     return [map['internalipaddress'] for map in data]
+ 
+ print(get_bridge_ips())
+ 
Enable finding Hue bridge on network.
## Code Before:
__author__ = 'hira'


## Instruction:
Enable finding Hue bridge on network.
## Code After:
import requests
import json


def get_bridge_ips():
    res = requests.get('http://www.meethue.com/api/nupnp').text
    data = json.loads(res)
    return [map['internalipaddress'] for map in data]

print(get_bridge_ips())
