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

271 Commits

Author SHA1 Message Date
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
Adrian Sampson
0a48345409 Get speaker volume setting
Still can't figure out how to *set* the light state.
2018-04-21 15:14:10 -04:00
Adrian Sampson
6d3e7b3fa6 Add method for reading light state 2018-04-21 14:59:53 -04:00
Adrian Sampson
426043397d Move base64/JSON assumption to config method
The "Control" settings seem to use other encodings?
2018-04-21 14:56:41 -04:00
Adrian Sampson
597895b263 Expose AC config values I know of so far 2018-04-21 14:42:11 -04:00
Adrian Sampson
0b3730f5f2 Make a new Client base class
For generic device-related utilities. Eventually, non-AC devices should
inherit from this too.
2018-04-21 14:34:35 -04:00
Adrian Sampson
d3cee73759 Friendlier device-level config method 2018-04-21 14:31:49 -04:00
Adrian Sampson
5da0c4a281 Option lookup interface 2018-04-21 14:28:43 -04:00
Adrian Sampson
172c755f95 Transparently restart monitoring tasks that fail 2018-04-21 11:03:35 -04:00
Adrian Sampson
d7cadd09c5 New exception for failed monitor polls 2018-04-21 11:00:33 -04:00
Adrian Sampson
72b3b4c525 Update a comment 2018-04-21 10:50:28 -04:00
Adrian Sampson
fe77d66e96 Show how to check device type 2018-04-03 10:45:58 -04:00
Adrian Sampson
c696489de2 Fetch device type 2018-04-03 10:40:38 -04:00
Adrian Sampson
86c63a92b5 Not all devices return JSON status data 2018-04-03 10:17:04 -04:00
Adrian Sampson
8588c109f8 Use self-reported C2F map instead of inverting F2C
This API is truly the worst.
2018-04-02 11:26:48 -04:00