Skip to content

v1.21.2 - Bulb Type Fix

Latest

Choose a tag to compare

@jasonacox-sam jasonacox-sam released this 29 Nov 03:30
e5ca5a7

Summary

Bulb type fix: BulbDevice.set_bulb_type() now applies the bulb type's brightness range and colour format.

Changes

  • #775 — BulbDevice.set_bulb_type() now applies the bulb type's brightness range and colour format. Before, set_white(), set_brightness(), set_colourtemp() and the *_percentage helpers raised ValueError after a manual set_bulb_type(), and Type A/C bulbs were sent hsv16 colours. A mapping passed to set_bulb_type() can still override them.
  • #774 — CI now also runs the test suite on Windows and macOS (Python 3.12), part of #742.

Upgrade

pip install --upgrade tinytuya==1.21.2

PyPI: https://pypi.org/project/tinytuya/1.21.2/


Contributors

Thanks to the community members who made this release possible:

  • @imsurya26 — found the bug in the documented manual set_bulb_type() path and fixed it, including a regression test (#775) — their first contribution to tinytuya. Welcome! 🎉
  • @shirley-claw — added Windows and macOS CI jobs (#774) — also a first contribution. Welcome! 🎉
  • @jasonacox-sam — reviewed #774 and #775, and hardware-tested this release on two B-type bulbs plus 3.1, 3.3 and 3.4 devices.