Skip to content

Commit

Permalink
Merge pull request calmh#44 from jgarland79/patch-1
Browse files Browse the repository at this point in the history
version is 'v4' would never match
  • Loading branch information
calmh committed Jan 30, 2016
2 parents 06a89e8 + aadfa4d commit 76ff33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unifi/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _login(self, version):
params = {'username': self.username, 'password': self.password}
login_url = self.url

if version is 'v4':
if version == 'v4':
login_url += 'api/login'
params = json.dumps(params)
else:
Expand Down

0 comments on commit 76ff33d

Please sign in to comment.