Skip to content

Conversation

MartinHjelmare
Copy link
Collaborator

Hi!

I'd like to use the new switch feature in a pull request to home assistant, and then the version needs bumping. I've set the base to master this time, to have the new version on master also.

Best regards,
Martin

MartinHjelmare and others added 8 commits October 25, 2015 23:35
* Add protocol_version attribute for Sensor class.
* Fix assigning payload as protocol_version at presentation.
* Change Message attributes type and subtype to integers at init. All
    Message attributes should be integers except the payload.
* Fix some minor PEP8 issues.
* Undo removal of int(...) in encode function in Message class.
    Still need the conversion for the IntEnum classes.
* Add unit test for Sensor attribute protocol_version.
* Add unit test for encoding of new unchanged Message.
* Fix spelling of persistance -> persistence.
* Add json files to .gitignore.
* Fix some minor PEP8 issues in test.py.
This feature will add support for mysensors switches.

* Add queue as attribute to Gateway class
* Add fill_queue function in Gateway class for putting functions in the
    queue.
* Add handle_queue function in Gateway class for getting functions from
    the queue, and calling them.
* Add set_child_value function in Gateway class as a convenience
    function. It will set a new value for a child and send the
    corresponding Message from the gateway to the child's node.
    This is not directly but by putting a function with arguments to
    the FIFO queue. The function in the queue is the set_child_value
    function in the Sensor class.
* Change set_child_value function in Sensor class to return a set
    Message.
* Change the loop in the run function in SerialGateway class to handle
    queue first, then read from serial interface. If valid input is
    read from serial and decoded, add logic function with input as
    argument to the queue.
* Add some debug logging to SerialGateway class.
* Fix some minor PEP8 issues.
* Fix problem of reading garbage after disconnecting and reconnecting,
    by changing pyserial required version to 2.5 or less.
* Make serial connecting and disconnecting more robust, by sleeping for
    a while after connecting, and by checking if connection is open
    after connecting, and by closing connection when thread stops.
* Add more logging to serial connection functions.
* Change lowest logging level for log messages to INFO.
* Add function to set log level to debug if debug attribute of gateway
    is true.
* Fix logging calls to use proper parameters instead of string
    formatting.
* Add function docstrings to fill_queue, handle_queue and
    set_child_value functions in Gateway class.
Conflicts:
	mysensors/mysensors.py

* Solved a couple of minor indentation style conflicts and merged a
	comment.
theolind added a commit that referenced this pull request Jan 7, 2016
@theolind theolind merged commit 005bff4 into theolind:master Jan 7, 2016
@MartinHjelmare MartinHjelmare deleted the version-0.4 branch January 16, 2016 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants