LinuxChristian / pyW215

Python interface to the d-link W215 smart plug.
MIT License
37 stars 25 forks source link

Python 2.x support #15

Closed clach04 closed 7 years ago

clach04 commented 7 years ago

Resolve issue #11 Add try/except for Python 3 libraries first. Alternative is to check python version, try/except technique is more Pythonic.

Works for turning on/off my DSP-W110.

clach04 commented 7 years ago

Forgot to document tested versions, tested with:

LinuxChristian commented 7 years ago

Looks fine to me.. Thanks