diff options
-rw-r--r-- | ShellyPy/wrapper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ShellyPy/wrapper.py b/ShellyPy/wrapper.py index 021a446..2715ce0 100644 --- a/ShellyPy/wrapper.py +++ b/ShellyPy/wrapper.py @@ -5,7 +5,7 @@ if version_info.major == 3: else: JSONDecodeError = ValueError -from requests import post +from requests import get from .error import BadLogin, NotFound, BadResponse @@ -29,7 +29,7 @@ class Shelly(): def __detect__(self, ip, port): url = "{}://{}:{}/shelly".format("http", ip, port) - response = post(url, timeout=5) + response = get(url, timeout=5) if response.status_code == 401: raise BadLogin() |