hass-core/tests/components/zwave_js
Raman Gupta 9e4e43cf77
Handle zwave_js metadata/value updates when the unit changes ()
* Handle zwave_js metadata updates when the unit changes

* Use value updated event instead of metadata updated event so we don't get an invalid state value

* update comments and formatting

* simplify

* Update tests/components/zwave_js/test_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update tests/components/zwave_js/test_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update tests/components/zwave_js/test_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* fix tests

* add additional assertions

* Add unit checks and simplify logic

* Add unit assertion

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-08 13:23:29 +01:00
..
fixtures Avoid removing zwave_js devices for non-ready nodes () 2021-12-27 12:31:31 +01:00
__init__.py
common.py Add zwave_js binary sensor entity category () 2021-11-09 18:26:34 +01:00
conftest.py Avoid removing zwave_js devices for non-ready nodes () 2021-12-27 12:31:31 +01:00
test_api.py Add SmartStart provisioning support to zwave_js WS API () 2021-12-01 11:43:51 +01:00
test_binary_sensor.py Refactor enum zwave js tests () 2022-01-01 21:50:48 +01:00
test_climate.py
test_config_flow.py Use dataclass properties in zwave_js () 2021-12-03 14:47:56 +01:00
test_cover.py Refactor enum zwave js tests () 2022-01-01 21:50:48 +01:00
test_device_action.py Use DeviceAutomationType in tests/components/[s-z]* () 2021-12-21 11:56:00 +01:00
test_device_condition.py Use DeviceAutomationType in tests/components/[s-z]* () 2021-12-21 11:56:00 +01:00
test_device_trigger.py Use DeviceAutomationType in tests/components/[s-z]* () 2021-12-21 11:56:00 +01:00
test_discovery.py Add zwave_js support for Fortrezz SSA3 () 2021-12-25 10:33:20 +01:00
test_events.py
test_fan.py Add zwave_js speed configurations for GE/Jasco 12730 and 14287 fans () 2021-11-29 08:27:32 +01:00
test_init.py Avoid removing zwave_js devices for non-ready nodes () 2021-12-27 12:31:31 +01:00
test_light.py Convert color temperature to visible color in lights () 2021-08-25 21:56:36 +02:00
test_lock.py Bump zwave-js-server-python to 0.29.1 () 2021-08-30 09:40:56 -07:00
test_migrate.py Add zwave to zwave_js migration () 2021-09-29 08:55:27 -07:00
test_number.py Use RegistryEntryDisabler () 2021-12-15 23:25:40 +02:00
test_select.py Refactor enum zwave js tests () 2022-01-01 21:50:48 +01:00
test_sensor.py Handle zwave_js metadata/value updates when the unit changes () 2022-01-08 13:23:29 +01:00
test_services.py Convert val to str when needed while calling zwave_js.set_value () 2021-10-07 13:22:33 -07:00
test_siren.py Use dict for zwave_js siren.available_tones () 2021-08-09 13:29:17 +02:00
test_switch.py
test_trigger.py Add zwave_js.value_updated automation trigger () 2021-08-20 15:21:55 -04:00