Skip to content

Commit

Permalink
Merge pull request #149 from BlackLight/develop
Browse files Browse the repository at this point in the history
Reverted `e5e550bf` `decodeString` in Bridge.request
  • Loading branch information
natcl authored Jan 27, 2019
2 parents e5e550b + 2d1a026 commit e971d06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phue.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,11 @@ def request(self, mode='GET', address=None, data=None):
result = connection.getresponse()
response = result.read()
connection.close()
if PY3K:
response = response.decode('utf-8')

logger.debug(response)
return json.loads(decodeString(response))
return json.loads(response)

def get_ip_address(self, set_result=False):

Expand Down

0 comments on commit e971d06

Please sign in to comment.