1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-18 08:10:17 -07:00

135 Commits

Author SHA1 Message Date
Adrian Sampson
3411ba85e9
Merge pull request #27 from boralyl/bugfix/reference-value
Fixes the ReferenceValue type.
2019-07-02 18:14:54 -04: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
Adrian Sampson
1e8e51c334
Merge pull request #26 from boralyl/feature/add-additional-types
Adds additional types returned when monitoring an LG dryer.
2019-07-01 11:40:44 -04: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
0541108855 CircleCI: Restore "sudo" to pip 2019-06-30 14:17:32 -04:00
Adrian Sampson
9e7665c07b CircleCI: Try another way to cache pip stuff 2019-06-30 14:16:28 -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
Adrian Sampson
cdf1a97d75 CircleCI: Cache installation of Tox 2019-06-30 11:30:22 -04:00
Adrian Sampson
92f48c2777 Badges 2019-06-30 11:25:56 -04:00
Adrian Sampson
923324e4de CircleCI: Try caching Tox environment 2019-06-30 11:23:33 -04:00
Adrian Sampson
abb9f7ccef CircleCI: try installing tox globally 2019-06-30 11:19:25 -04:00
Adrian Sampson
79c17d5a77 Initial CircleCI config 2019-06-30 11:18:24 -04:00
Adrian Sampson
90fc21a351 Actually test something 2019-06-30 11:02:48 -04:00
Adrian Sampson
195cb50452 Merge branch 'feature/bootstrap-tests' 2019-06-30 10:44:14 -04:00
Adrian Sampson
0b9cafc57e Test requires are no longer relevant 2019-06-30 10:38:50 -04:00
Adrian Sampson
6bdb973afe Tell coverage where the source is
Otherwise, it was trying to cover the test files...
2019-06-30 10:35:49 -04:00
Adrian Sampson
d306f592e4 tox: Separate flake8 and coverage tesenvs 2019-06-30 10:34:03 -04:00
Adrian Sampson
0c4600280f Use built-in tox support for PEP 518
We don't need to manually invoke `flit`; with `isolated_build`, tox
supports non-setuptools builds out of the box.
2019-06-30 10:25:34 -04:00
Adrian Sampson
0fefd70c77 Fix environment name in Tox config 2019-06-30 10:18:16 -04:00
Adrian Sampson
91f797289b Use built-in unittest for test execution
I like pytest, but I don't think it's necessary for super simple tests.
I'd like to avoid the dependency if we don't need it.
2019-06-30 10:15:51 -04:00
Adrian Sampson
567bd24015
Merge pull request #22 from boralyl/feature/package
Moved wideq.py into it's own module.
2019-06-29 23:31:22 -04:00
aaron.godfrey
e85ba126c5 Bootstrap tests. 2019-06-28 11:31:10 -07:00
aaron.godfrey
aa2a13bb6d Moved wideq.py into it's own module. 2019-06-28 11:26:17 -07:00
Adrian Sampson
b176cd26ee Nice error when device can't be found
Inspired by #17.
2019-06-20 13:17:02 -04:00
Adrian Sampson
4c3eb82a50 Ignore state file 2019-06-16 15:37:21 -04:00
Adrian Sampson
fd68455910 Allow country and language arguments to from_token
Useful for the Home Assistant component.
v1.0.1
2019-06-16 15:36:18 -04:00
Adrian Sampson
a16e146b64 Switch to Flit for distribution v1.0.0 2019-06-16 15:09:32 -04:00
Adrian Sampson
dae03a0645 Expand README 2019-06-16 15:01:14 -04:00
Adrian Sampson
8929123c8d Add country and language flags to example (#13) 2019-06-16 14:51:20 -04:00
Adrian Sampson
74a175fae0 Parameterize language and country (fix #13) 2019-06-16 14:42:49 -04:00
Adrian Sampson
0317c81bdf Use argparse for example 2019-06-16 14:30:11 -04:00
Adrian Sampson
8615be9722 Marginally more thread-safe monitoring
This way, calling `poll` before `monitor_start` finishes won't crash.
2019-02-24 16:39:09 -05:00
Adrian Sampson
0b14dd5832 Expose an exception for "not connected" errors 2019-01-24 17:20:18 -05:00
Adrian Sampson
caeb63d598 Wrap a long line 2018-10-08 12:45:40 -04:00
Adrian Sampson
49350f6fd2
Merge pull request #7 from NorDroN/master
Decode binary monitoring status data
2018-09-12 13:07:52 -04:00
nordron
4ad4946719 Revert changes 2018-09-12 00:17:56 +03:00
nordron
2ea2459f50 Merge branch 'master' of https://github.com/NorDroN/wideq 2018-09-11 23:56:14 +03:00
nordron
4ca839c2a9 Refactoring 2018-09-11 23:53:32 +03:00
krocans
93151962e9 decode_monitor_binary bytestring index fix (by NorDroN) 2018-09-04 00:24:14 +03:00
Adrian Sampson
6e27913521 Don't crash when there are no devices
Apparently, these objects are just missing the 'item' key when there are
no devices (instead of mapping to an empty list, as you'd expect).

Bug reported here:
https://community.home-assistant.io/t/in-development-lg-smartthinq-component/40157/55?u=samps
2018-08-14 20:23:04 -04:00
krocans
5a5e8bf47d DeviceInfo decodes monitor status data 2018-08-12 10:33:27 +03:00
krocans
910e55d018 Decode binary monitoring status data 2018-08-12 10:16:23 +03:00
root
0ee80dd122 Fix monitor data printed twice on missing 'value' 2018-08-11 23:32:08 +03:00
Adrian Sampson
708da5c9ef Improve docstrings 2018-06-17 10:41:14 -04:00
Adrian Sampson
4cde35597a Style fixes 2018-06-17 10:37:41 -04:00
Adrian Sampson
2dc1c331a6 Merge pull request #5 from bindismal/master
Support for zone and fan speed control
2018-06-17 10:35:28 -04:00
bindismal
add21143d2 Accepted proposed changes 2018-06-17 23:50:33 +10:00
bindismal
3c59047d10 Added support for zone control for ducted HVAC that support zone control
Added support for reading / setting fan speed
2018-06-16 21:34:33 +10:00
Adrian Sampson
c6d597f446 Allow missing monitor return code 2018-04-28 09:59:42 -04:00