Commit Graph

26 Commits

Author SHA1 Message Date
Brian Martin 9919baad27 more tests 2019-02-16 02:54:39 -05:00
Brian Martin 409b04b713 add tests 2019-02-16 02:19:13 -05:00
Brian Martin 5d6df85ed6 Fix custom commands
Fix for custom commands with multiple inner tags
Updated tests
2019-02-08 01:43:00 -05:00
Brian Martin 1812a212e1 Add mqtt tests
Add mqtt tests
2019-01-20 22:25:59 -05:00
Brian Martin f3bcfb4ddc Add more iot tests
Add more iot tests
2019-01-20 16:30:53 -05:00
Brian Martin e2b0ea7b55 Add test MQTTPing
Add test MQTTPing & Fix tests
2019-01-17 09:13:47 -05:00
Brian Martin 335ac6a7e1 Handle already charging
Handle already charging
Small cleanup
2019-01-15 10:16:09 -05:00
Brian Martin 4ca9750738 Fix xmpp
Fix xmpp to work with iot
2019-01-15 02:24:49 -05:00
Brian Martin 304c576960 Add spotarea command tests
Add spotarea command tests
2019-01-14 11:23:27 -05:00
Brian Martin d317e4b913 Fix tests & Clean
Fix tests
Add tests for iot
Modify Clean to use kwargs for SpotArea
2019-01-14 10:59:25 -05:00
Brian Martin ef0bd2e90d Add backward action
Add backward action
2019-01-13 21:22:19 -05:00
William Pietri 07bd96c9c7 Apply fix from eracknaphobia/sucks for mysterious auth error issue. 2018-09-22 17:45:47 -07:00
Greg Laabs 276721e280 Fix lifespans being reported much lower than reality
Original implementation assumed that the "total" value from the API response was the denominator for lifespan, but this was incorrect. The "val" from the `life_span` message is the percentage represented as a whole number, with no dividing necessary.
2018-07-29 15:22:31 -07:00
Greg Laabs 930e475905 Const and logging cleanup, addition of is_cleaning and is_charging
All sucks vocabulary is now defined up-front in consts, so that library users can import those const instead of hard-coding them.

is_cleaning and is_charging properties were added to VacBot, avoiding library users to have to understand which vacuum statuses mean active cleaning.

All logging has been moved to instantiated loggers using the module's namespace, as is recommended by the Python docs.
2018-07-19 12:18:22 -07:00
Greg Laabs df44def7c5 Add tests, and fix some edge cases revealed by tests (yay!) 2018-07-15 15:19:40 -07:00
William Pietri d300df99eb Moving waiting logic to CLI. 2017-12-19 16:01:16 -08:00
Torbjörn Axelsson 66d73f7cf0 VacBotCommand class updated and more commands added 2017-12-16 15:26:57 -08:00
William Pietri d6e4f7d5c5 Events now flow to Vacbot as reasonably sane dicts. 2017-12-12 11:49:10 -08:00
William Pietri fbd3c3d85a Seeing if I can split the XMPP responsibilities from the vacuum responsibilities. 2017-12-11 16:14:52 -08:00
William Pietri fc276a8fe3 Adding some basic tests for static api functions. 2017-12-10 18:40:01 -08:00
William Pietri f1b2fbc3ab Adding tests for reading and writing config. 2017-12-10 18:40:01 -08:00
William Pietri c691f1918e Does this work for Windows config file paths? 2017-12-10 18:40:01 -08:00
William Pietri f4aeff5c13 Does this work for Windows config file paths? 2017-12-10 18:40:01 -08:00
Greg Laabs da6f9ef464 Add tests for the command formatting changes
Tests preserving the CamelCasing of commands, and support for zero args
2017-12-09 13:10:34 -08:00
William Pietri 9ee1012334 removing accidentally committed cruft 2017-12-04 19:57:39 -08:00
William Pietri 7a39d7e271 Preparing for PyPi submission. 2017-12-04 14:11:27 -08:00