Commit Graph

17 Commits

Author SHA1 Message Date
Brian Martin 054f401590 Merge branch 'master' into bumper-certs 2019-06-14 08:13:55 -05:00
Brian Martin 3c9c834e34 change str_to_bool func
Change str_to_bool func allowing for providing a CA Cert - Useful for Bumper
2019-06-14 09:11:52 -04:00
Brian Martin 4b47e8e0ef Merge branch 'master' into pr/6 2019-06-14 07:25:04 -05:00
Greg Laabs f137a7e79b Swap tests to sleekxmppfs as well 2019-04-18 11:18:38 -07:00
Brian Martin 597129dda0 Combine MQTT and IOT into IOTMQ
Combined MQTT and IOT into IOTMQ
Updated tests - now with 99% coverage for __init__
2019-02-18 17:44:41 -05:00
Brian Martin 409b04b713 add tests 2019-02-16 02:19:13 -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 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
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 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
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 7a39d7e271 Preparing for PyPi submission. 2017-12-04 14:11:27 -08:00