From d9991d5acd807ed1939c4ef258b8adb033ef3891 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Wed, 2 Jan 2019 11:45:48 -0500 Subject: [PATCH] Fixed link formatting (fixes #132) --- blinkpy/helpers/constants.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blinkpy/helpers/constants.py b/blinkpy/helpers/constants.py index a801f5f..3eb1d82 100644 --- a/blinkpy/helpers/constants.py +++ b/blinkpy/helpers/constants.py @@ -45,10 +45,10 @@ PYPI_URL = 'https://pypi.python.org/pypi/{}'.format(PROJECT_PACKAGE_NAME) URLS ''' BLINK_URL = 'immedia-semi.com' -LOGIN_URL = 'https://prod.' + BLINK_URL + '/login' -LOGIN_BACKUP_URL = 'https://rest.piri/' + BLINK_URL + '/login' -BASE_URL = 'https://prod.' + BLINK_URL -DEFAULT_URL = 'prod.' + BLINK_URL +DEFAULT_URL = "{}.{}".format('prod', BLINK_URL) +BASE_URL = "https://{}".format(DEFAULT_URL) +LOGIN_URL = "{}/login".format(BASE_URL) +LOGIN_BACKUP_URL = "https://{}.{}/login".format('rest.piri', BLINK_URL) ''' Dictionaries