Repository navigation
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*_percentagehelpers raisedValueErrorafter a manualset_bulb_type(), and Type A/C bulbs were senthsv16colours. Amappingpassed toset_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.