-
Notifications
You must be signed in to change notification settings - Fork 44
0.13 #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
0.13 #138
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Add tests and fix bug.
* Add internal sub-types addeed in MYS 2.2 * fix lint error * Validate new 2.2 internal sub-types * Remove a space * Validate payload as string and add tests
* Handle smartsleep in version 2.2 * Add const modules for version 2.1 and 2.2. * Map the new message type for smartsleep correctly. * Update get_const function. * Update tests. * Update tests for version 2.1 and 2.2 * Fix up
* Clean up save_sensors * Save sensors on a schedule * Saving sensors to a persistence file does I/O, which is expensive. So instead of doing this after every sensor update, which can be very frequent, save the sensors on a schedule every 10 seconds. * Make sure we cancel the schedule when stopping the gateway and that we save the sensors before exiting. * Fix tests * Add tests * Only save sensors if persistence
* Restructure package * Fix tests * Fix lint * Break out persistence tests * Clean up pylint disable * Allow save scheduler to be customized * Add scheduler argument * Do not load persistence file at gateway init **Breaking change** * Break out threading gateway class, ThreadingGateway. Change order of keyword arguments to clarify and simplify class inheritence. * Move persistence file loading, saving and scheduling of saving to own method on ThreadingGateway. This allows future use of asyncio. The new method is called start_persistence. This must be called before starting the thread loop of the gateway, if persistence is used, to ensure persistence file is loaded before communication starts. This also allows the user control over when persistence should be loaded. * Clarify methods and docstrings
* Break out firmware file loading * Fix tests
* Add async serial gateway * Use pyserial-asyncio version 0.4. * Rename handle_queue to run_job. * Rename fill_queue to add_job. * Use collections.deque instead of queue.Queue for main queue. * Send reply directly from add_job in async serial gateway. * Make gateway start, stop, start_persistence and update_fw methods coroutines in async serial gateway. * Run I/O methods, ie load/save persistence file and firmware updates on executor. * Add debug logging for persistence loading and saving. * Clean up pylint disables. * Add async main script. * Update readme. * Clean up
* Add base serial protocol and upstream serial thread * Use pyserial library threading module. * Set line terminator to b'\n'. * Add async serial protocol based on base serial protocol. * Clean up inheritance. * Clarify public methods.
* Refactor tcp and serial gateways * Add base protocol class. * Add base transport gateway class, for gateways with transport implemented in this library. Ie mqtt will not use this class. * Use base transport gateway class for serial and tcp gateways. * Add tcp transport class and refactor tcp gateway class. * Inherit tcp transport from serial ReaderThread. * Add polling thread for queue for tcp gateway. * Only do debug logging for received and sent messages for gateways without log message. * Fix mqtt gateway and tests. * Clean up logging * Fix check connection timer and clean up logging
* Add async tcp gateway * Refactor gateways to use base async gateway and base TCP gateway. * Add async TCP gateway. * Fix check connection * Don't close transport after connection closed * Update readme
* Create a base MQTT gateway. * Use base MQTT gateway for threaded MQTT gateway and async MQTT gateway.
* PYPI at https://pypi.org/ now supports rendering markdown for the description. The legacy site http://pypi.python.org/ will not render the markdown, but this site will soon be closed down and redirect to the new site. See https://wiki.python.org/psf/WarehouseRoadmap.
* Update changelog generator to use python package * Add changelog generator to pypi requirements * Fix changelog generator script
* See https://pyup.io/docs/bot/what-is-pyup-bot/ for general info. * See https://pyup.io/docs/bot/config/ for config file format.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking Changes:
Closed issues:
Merged pull requests: