1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-06-01 06:50:15 -07:00

28 Commits

Author SHA1 Message Date
Marcio Granzotto Rodrigues
8236f052ca
Update wideq/core.py 2021-03-22 16:18:03 -03:00
Marcio Granzotto Rodrigues
235fb0f231
Update wideq/core.py 2021-03-22 16:17:59 -03:00
Marcio Granzotto
6197fa42d1 Add fallback to v1 API 2021-03-22 16:08:01 -03:00
Michael Wei
6e38538d65 missing language functions 2021-01-03 04:16:49 +00:00
Michael Wei
8617831453 Initial thinq2 support, works with LA090HSV5 ac 2020-11-30 21:15:41 +00:00
Michael Wei
fb3c755c2e introduce black formatter 2020-11-21 19:46:57 +00:00
Adrian Sampson
d14f1f96d8 Tweaks for #126 (fixes #64) 2020-10-14 07:47:47 -04:00
pifou
c6f822bffe fix flake8 criteria 2020-10-13 23:08:39 +02:00
pifou
810a3ce747 try auto fix json encoding error 2020-10-13 22:56:27 +02:00
pifou
da8b3453fa Update core.py 2020-10-03 10:42:57 +02:00
Adrian Sampson
fd5a695988 Recreate sessions on the fly
Adapts #88 to avoid a global session object.
2020-04-10 21:43:52 -04:00
Adrian Sampson
6af5eb1ce1 Uniform names for retry constants 2020-04-10 21:42:11 -04:00
Jason Swails
65efc281a3 Fix flake8 2020-04-10 09:29:31 -04:00
Jason Swails
c595749eb9 Incorporate review comments 2020-04-10 09:24:39 -04:00
Jason Swails
e7b5a7d28b Address review comments 2020-04-07 22:05:06 -04:00
Jason Swails
95e64dec1a Fix flake8 complaints 2020-04-07 08:07:42 -04:00
Jason Swails
6446595548 Improve retry logic 2020-04-05 10:11:12 -04:00
Frederik Gladhorn
919139d9e8 Add logging
Instead of using print, let's use Python's logging framework. That
allows switching verbosity easily and filtering out unwanted messages.
Some of the setup code is inspired by what Home Assistant does.
2020-01-31 22:01:17 +01:00
Frederik Gladhorn
d35c3ff817 Add (de)serialize methods to Gateway and Auth
This makes the parts belonging to the class more local and encapsulated.
This will make adding API v2 easier.
2020-01-22 15:34:19 +01:00
Frederik Gladhorn
655bace1ba Test Gateway instantiation and remove gateway_info
The function just forwarded to do one API call, do the same call inline
and improve testing at the same time by checking that 'Gateway' gets
instantiated correctly.
2020-01-12 21:42:10 +01:00
Frederik Gladhorn
2641e44f3e Improve type information
Most parameters to Client's __init__ are optional.
This matters when adding more types other places.
2020-01-12 11:19:31 +01:00
Frederik Gladhorn
e98d2a18d1 Add type information
This helps later refactoring.
Use mypy to check types.
2020-01-11 20:18:22 +01:00
Adrian Sampson
47765d21e4 Preserve codes for named errors
This simplifies the definition of error classes *and* preserves more
information about the underlying message from the API.
2019-12-26 13:35:53 -05:00
Adrian Sampson
dbab3fd1fe Do not crash on failed speaker volume retrieval
Fixes #63.
2019-12-26 13:33:25 -05:00
Adrian Sampson
3ac6cab147 Refactor API error handling
Use a declarative style for mapping errors. Also add a new one for an
"invalid request" message.
2019-12-26 13:13:14 -05:00
Adrian Sampson
9896067952 Expand comment for #25 2019-07-04 10:53:06 -04:00
José Albornoz
4eb4ba1975 Return None on monitoring when there's no code yet 2019-07-03 23:00:35 -04:00
Adrian Sampson
22cde97fab Reorgnize package into 3 modules
As discussed here:
https://github.com/sampsyo/wideq/pull/24#issuecomment-506997116

Closes #24.
2019-06-30 14:08:42 -04:00