Commit Graph

16 Commits

Author SHA1 Message Date
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