Skip to content

Commit

Permalink
Fixed get_ip_address
Browse files Browse the repository at this point in the history
  • Loading branch information
natcl committed Oct 25, 2013
1 parent 2b4e20a commit 084314a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions phue.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def get_ip_address(self, set_result=False):

""" Get the bridge ip address from the meethue.com nupnp api """

connection = httplib.HTTPConnection('http://www.meethue.com')
connection = httplib.HTTPConnection('www.meethue.com')
connection.request('GET', '/api/nupnp')

logger.info('Connecting to meethue.com/api/nupnp')
Expand Down Expand Up @@ -819,12 +819,11 @@ def delete_schedule(self, schedule_id):
if __name__ == '__main__':
import argparse

logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.DEBUG)

parser = argparse.ArgumentParser()
parser.add_argument('--host', required=True)
args = parser.parse_args()
logger.setLevel(logging.DEBUG)

while True:
try:
Expand Down

0 comments on commit 084314a

Please sign in to comment.