studioimaginaire / phue

A Python library for the Philips Hue system
Other
1.52k stars 267 forks source link

Fixed Python 3.9 compatibility #185

Closed blacklight closed 3 years ago

blacklight commented 3 years ago

The usage of the is/is not operators with any values other than True/False/None has been deprecated and removed in Python 3.9.

This causes the following error when running the library on the latest Python interpreter:

/usr/lib/python3.9/site-packages/phue.py:694: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if ip is not '':