Skip to content

Commit

Permalink
version is 'v4' would never match
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Garland committed Jan 21, 2016
1 parent 06a89e8 commit aadfa4d
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 aadfa4d

Please sign in to comment.