Git Product home page Git Product logo

pydrawise's People

Contributors

cdce8p avatar dependabot[bot] avatar dknowles2 avatar rumbu13 avatar thomaskistler avatar

Stargazers

 avatar  avatar

Watchers

 avatar

pydrawise's Issues

GraphQL Client: Working (Zone is starting using testscript) but throwing "user credentials were incorrect" error

I put your test code in a test.py within a vscode devcontainer (docker based), added my user credentials (hydrawise account username/password -> no token!) and run test.py.

My zone[0] started correctly (zone[0] is the first configured zone on my Pro-HC), but threw some errors corresponding to wrong credentials.

vscode โžœ ~/pydrawise (main) $ /usr/local/python/current/bin/python /home/vscode/pydrawise/test.py
Traceback (most recent call last):
File "/home/vscode/pydrawise/test.py", line 21, in
asyncio.run(main())
File "/usr/local/python/3.11.4/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/python/3.11.4/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python/3.11.4/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/vscode/pydrawise/test.py", line 11, in main
controllers = await h.get_controllers()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/pydrawise/pydrawise/client.py", line 96, in get_controllers
result = await self._query(selector)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/pydrawise/pydrawise/client.py", line 62, in _query
async with await self._client() as session:
^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/pydrawise/pydrawise/client.py", line 57, in _client
headers = {"Authorization": await self._auth.token()}
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/pydrawise/pydrawise/auth.py", line 80, in token
await self.check_token()
File "/home/vscode/pydrawise/pydrawise/auth.py", line 71, in check_token
await self._fetch_token_locked(refresh=False)
File "/home/vscode/pydrawise/pydrawise/auth.py", line 59, in _fetch_token_locked
raise NotAuthorizedError(resp_json["message"])
pydrawise.exceptions.NotAuthorizedError: The user credentials were incorrect.

Planning of Home Assistant Integration

Hi,

I saw you are planning to integrate pydrawise into HA Core. Do you have any plan to release a HACS custom integration for this? Because I think until they approve the new code it will take much time...

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.