hass-core/tests/components/zwave_js
AlCalzone f446e42317
Support non-dimmable color lights in Z-Wave JS (#127808)
* 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>
2024-10-10 14:36:37 +02:00
..
fixtures Support non-dimmable color lights in Z-Wave JS (#127808) 2024-10-10 14:36:37 +02:00
scripts
snapshots Enable Zwave notification sensors by default (#125326) 2024-09-25 11:53:42 +02:00
__init__.py
common.py
conftest.py Support non-dimmable color lights in Z-Wave JS (#127808) 2024-10-10 14:36:37 +02:00
test_api.py Bump zwave-js-server-python to 0.58.1 (#127114) 2024-09-30 18:35:14 +02:00
test_binary_sensor.py Use registry fixtures in tests (z) (#118300) 2024-05-28 18:25:49 +02:00
test_button.py Use Registry fixture in zwave_js tests (#119277) 2024-06-10 15:00:05 +02:00
test_climate.py
test_config_flow.py Use aiohasupervisor for store APIs (#126780) 2024-10-10 10:27:20 +02:00
test_config_validation.py Fix zwave_js config validation for values (#127972) 2024-10-09 07:35:41 +02:00
test_cover.py Cover state is enum (#127144) 2024-10-08 18:39:04 +02:00
test_device_action.py
test_device_condition.py Use service_calls fixture in zwave_js tests (#120994) 2024-07-02 12:37:21 +02:00
test_device_trigger.py Use service_calls fixture in zwave_js tests (#120994) 2024-07-02 12:37:21 +02:00
test_diagnostics.py Enable Zwave notification sensors by default (#125326) 2024-09-25 11:53:42 +02:00
test_discovery.py Support non-dimmable color lights in Z-Wave JS (#127808) 2024-10-10 14:36:37 +02:00
test_event.py
test_events.py
test_fan.py Add TURN_OFF/TURN_ON feature flags for fan (#121447) 2024-07-19 11:35:24 +02:00
test_helpers.py Fix ruff type comparison E721 (#120731) 2024-06-28 11:56:49 +02:00
test_humidifier.py
test_init.py Use aiohasupervisor for store APIs (#126780) 2024-10-10 10:27:20 +02:00
test_light.py Support non-dimmable color lights in Z-Wave JS (#127808) 2024-10-10 14:36:37 +02:00
test_lock.py Change lock state to an enum (#126379) 2024-09-24 12:30:50 +02:00
test_logbook.py Use registry fixtures in tests (z) (#118300) 2024-05-28 18:25:49 +02:00
test_migrate.py Use registry fixtures in tests (z) (#118300) 2024-05-28 18:25:49 +02:00
test_number.py Use registry fixtures in tests (z) (#118300) 2024-05-28 18:25:49 +02:00
test_repairs.py Add helper functions for repair tests (#125886) 2024-09-14 03:31:44 +02:00
test_select.py Use registry fixtures in tests (z) (#118300) 2024-05-28 18:25:49 +02:00
test_sensor.py Enable Zwave notification sensors by default (#125326) 2024-09-25 11:53:42 +02:00
test_services.py Use Registry fixture in zwave_js tests (#119277) 2024-06-10 15:00:05 +02:00
test_siren.py
test_switch.py Add alias to DOMAIN import in tests [n-z] (#125581) 2024-09-09 15:14:05 +02:00
test_trigger.py Bump zwave-js-server-python to 0.58.1 (#127114) 2024-09-30 18:35:14 +02:00
test_update.py Use Registry fixture in zwave_js tests (#119277) 2024-06-10 15:00:05 +02:00