aboutsummaryrefslogtreecommitdiff
path: root/ShellyPy/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'ShellyPy/base.py')
-rw-r--r--ShellyPy/base.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ShellyPy/base.py b/ShellyPy/base.py
index 505d796..6c34be0 100644
--- a/ShellyPy/base.py
+++ b/ShellyPy/base.py
@@ -5,8 +5,6 @@ if version_info.major == 3:
else:
JSONDecodeError = ValueError
-from requests.auth import HTTPBasicAuth
-
class ShellyBase:
def __init__(self, ip, port = "80", *args, **kwargs):
@@ -37,7 +35,7 @@ class ShellyBase:
self.__timeout__ = kwargs.get("timeout", 5)
- self.__credentials__ = HTTPBasicAuth(
+ self.__credentials__ = (
login.get("username", ""), login.get("password", "")
)