mirror of
https://github.com/home-assistant/core.git
synced 2025-05-09 08:29:20 +00:00

* Z-Wave JS: support non-dimmable color lights * remove black_is_off light, support on/off/color * fix: tests for on/off light * fix: typo * remove commented out old test code * add test for off and on * support colored lights without separate brightness control * add test for color-only light * refactor: extract color only light * fix: preserve color when changing brightness * extend tests * refactor again * refactor scale check * refactor: remove impossible check * review feedback * review feedback * fix discovery to handle all 3 switch CCs, limit search to same endpoint * Update homeassistant/components/zwave_js/discovery.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/zwave_js/discovery.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * add test for Smart Switch 7 state * Add type annotations --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>