Skip to content
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

Prepare 0.5.1 #716

Merged
merged 1 commit into from
Jun 4, 2020
Merged

Prepare 0.5.1 #716

merged 1 commit into from
Jun 4, 2020

Conversation

rytilahti
Copy link
Owner

@rytilahti rytilahti commented Jun 4, 2020

The most noteworthy change in this release is the work undertaken by @starkillerOG to improve the support for Xiaomi gateway devices. See the PR description for more details at #700 .

For downstream developers, this release adds two new exceptions to allow better control in situations where the response payloads from the device are something unexpected. This is useful for gracefully fallbacks when automatic device type discovery fails.

P.S. There is now a matrix room (https://matrix.to/#/#python-miio-chat:matrix.org) so feel free to hop in for any reason.

This release adds support for the following new devices:

  • chuangmi.plug.hmi208
  • Gateway subdevices: Aqara Wireless Relay 2ch (@bskaplou), AqaraSwitch{One,Two}Channels (@starkillerOG)

Fixes & Enhancements:

  • The initial UDP handshake is sent now several times to accommodate spotty networks
  • chuangmi.camera.ipc019: camera rotation & alarm activation
  • Vacuum: added next_schedule property for timers, water tank status, is_on state for segment cleaning mode
  • chuangmi.plug.v3: works now with updated firmware version
  • Viomi vacuum: various minor fixes

API changes:

  • Device.send() accepts extra_parameters to allow passing values to the main payload body. This is useful at least for gateway devices.

  • Two new exceptions to give more control to downstream developers:

    • PayloadDecodeException (when the payload is unparseable)
    • DeviceInfoUnavailableException (when device.info() fails)
  • Dependency management is now done using poetry & pyproject.toml

@coveralls
Copy link

Coverage Status

Coverage remained the same at 73.379% when pulling c5d502d on release_051 into f9c396b on master.

@rytilahti rytilahti merged commit 8f57047 into master Jun 4, 2020
@rytilahti rytilahti deleted the release_051 branch June 4, 2020 17:17
xvlady pushed a commit to xvlady/python-miio that referenced this pull request May 9, 2021
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