Code Monkey home page Code Monkey logo

landroidcc's People

Contributors

awegg avatar eiaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

landroidcc's Issues

404 Client Error: Not Found for url: https://api.worxlandroid.com/api/v2/oauth/token

Since some days I get the following EM:

File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 57, in connect
self._api_authentificate(username, password)
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 252, in _api_authentificate
response = self._apicall_rest('oauth/token', postdata=post_json, set_headers=False)
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 236, in _apicall_rest
response_plain.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.worxlandroid.com/api/v2/oauth/token

AttributeError: module 'base64' has no attribute 'decodestring' with Python 3.9.2

2022-08-22 11:13:40 init _api_authentificate INFO Successfully logged in
Traceback (most recent call last):
File "/home/raspi/python/landi.py", line 15, in
landroid.connect(xxxx", "yyyyy")
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 74, in connect
self._connectmqtt()
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 135, in _connectmqtt
pkcs12 = base64.decodestring(self._api_certificate["pkcs12"].encode())
AttributeError: module 'base64' has no attribute 'decodestring'

get_error() return issue

    def get_error(self):
        """
        Returns the error as string. If there is no error, "No Error" is returned
        :return: The error as text
        :rtype: str
        """
        return self._state

should be return self._error

Off-topic: Did you, by any chance, already create a HASS integration/component? Could you share the code? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.