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
be05e1b33e
Allow strings in ModelInfo
...
The only instance where this is used is a comment,
see issue #62 . For now it will just be ignored. The comment seems to
contain several times.
Fixes #62
2020-01-27 11:45:51 +01:00
Frederik Gladhorn
72040db991
When ModelInfo contains yet unknown values, also report the name
...
Then we at least have some idea (hopefully) what kind of data we are
going to ignore. See issue #62 .
2020-01-13 17:19:33 +01:00
Frederik Gladhorn
5a20b35171
Report what data is available when ModelInfo contains unexpected types
...
It seems that the data can cointain strings (see issue #62 ). Let's dump what
data we have available to be able to debug this.
2020-01-13 12:51: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
Adrian Sampson
78b48f0831
Whitespace fixes
2019-08-12 09:37:22 -04:00
Dermot Duffy
92be23f18b
Add dishwasher unittest.
2019-08-11 22:05:01 -07:00
Aaron Godfrey
89967d0d76
Adding a washer device.
2019-07-09 14:34:58 -07:00
Aaron Godfrey
8ed1ae3c1b
Addressing PR comments.
2019-07-05 23:23:34 -07:00
Aaron Godfrey
763d9f9887
Don't raise an exception if we encounter an enum value that's not known.
...
Instead log a warning and return a value of 'Unknown'.
2019-07-05 16:01:21 -07:00
Aaron Godfrey
48684c14fd
Added a data directory with known values for washers/dryers.
...
Also added temp_control and time_Dry properties to dryer status.
2019-07-05 13:58:55 -07:00
Aaron Godfrey
53f736b5c6
Merge branch 'master' into feature/add-dryer-device
2019-07-02 17:57:15 -07:00
Aaron Godfrey
552b6b4de9
Added soem tests.
2019-07-02 17:56:27 -07:00
Aaron Godfrey
2636e8617b
Added some tests.
2019-07-02 17:52:44 -07:00
Aaron Godfrey
166af43277
Fixes the ReferenceValue type.
...
This type is a reference to another key at the root of the data.
Prior to this PR we were just storing the name and not the value that
the reference pointed to.
2019-07-02 14:53:20 -07:00
aaron.godfrey
5ff879aa36
Some modifications to the dryer state.
2019-07-01 15:58:28 -07:00
Aaron Godfrey
82dbf607c1
Removed length for BitValue namedtuples.
2019-06-30 22:32:48 -07:00
Aaron Godfrey
556943cbfb
Adds additional types returned when monitoring an LG dryer.
2019-06-30 17:08:50 -07: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
Adrian Sampson
90fc21a351
Actually test something
2019-06-30 11:02:48 -04:00
aaron.godfrey
e85ba126c5
Bootstrap tests.
2019-06-28 11:31:10 -07:00