diff --git a/pyShelly/compat.py b/pyShelly/compat.py index 3c20249..1f800a7 100644 --- a/pyShelly/compat.py +++ b/pyShelly/compat.py @@ -25,6 +25,9 @@ def urlencode(x): def urlopen(x): return urllib2.urlopen(x) else: + import urllib.parse + import urllib.request + def ba2c(x): # Convert bytearra to compatible bytearray return x