hass-core/tests/components/ozw
Raman Gupta 6db4075a23
Add OZW node config parameters websocket commands (#40527)
* add websocket commands to retrieve and set config parameters for a node

* move set_config_parameter into generic function and refactor service and WS API

* add payload to return to make service call behave the same way it did before

* create response class

* update error message to pass tests

* move things a bit to reduce LOC

* add tests

* handle logging errors better and make new response class more generic to prepare for lock user code work

* remove unused function parameter

* invert check

* add additional error checking

* refactor a bit to remove repeat code

* revert log msg change

* one more refactor to create generic get_config_parameters function

* change if logic for consistency

* fix test

* add support to provide bool value in set_config_parameter service call

* standardize parameter names on service call

* add test coverage

* fix tests and message sending

* remove unnecessary logging import

* fix one test to get missing coverage

* update per martin and kpines reviews

* remove false assertion

* string line length

* add support for Decimal config param, remove node instance ID as input, and move helper functions to node.py

* cast Decimal appropriately

* revert change to support Decimal for config params since they are not supported as a config param type

* revert to using error arguments to make next PR for WS lock commands easier

* switch to class method and add guard for list Value not being a number

* update logic to use new openzwavemqtt util methods

* add support for bitsets

* use parent exception class

* bump openzwavemqtt version, remove node.py from .coveragerc and put file references in the right place

* add comment

* improve config validation

* remove bitset support from config validation

* re-add bitset support with some additional tests

* move send_result out of try block
2020-10-05 21:47:28 +02:00
..
__init__.py Rename zwave_mqtt to ozw (#35631) 2020-05-14 22:56:04 +02:00
common.py Add fan platform to ozw component (#35249) 2020-05-26 19:48:39 -04:00
conftest.py Add ZwaveStringSensor to OZW integration (#38676) 2020-08-23 15:16:26 +02:00
test_binary_sensor.py Rename zwave_mqtt to ozw (#35631) 2020-05-14 22:56:04 +02:00
test_climate.py Discover additional ozw thermostats lacking mode support (#40799) 2020-09-30 21:12:44 +02:00
test_config_flow.py Use single_instance_allowed for webhook config flows (#40965) 2020-10-01 20:44:13 +02:00
test_cover.py Add ozw garage door barrier support (#37316) 2020-07-02 21:29:09 +02:00
test_fan.py Add fan platform to ozw component (#35249) 2020-05-26 19:48:39 -04:00
test_init.py Rename zwave_mqtt to ozw (#35631) 2020-05-14 22:56:04 +02:00
test_light.py Trim CW from RGB when not supported in ozw (#39191) 2020-08-23 19:20:37 -04:00
test_lock.py Add ozw usercode support (#37390) 2020-07-08 16:41:53 -07:00
test_scenes.py Rename zwave_mqtt to ozw (#35631) 2020-05-14 22:56:04 +02:00
test_sensor.py Add ZwaveStringSensor to OZW integration (#38676) 2020-08-23 15:16:26 +02:00
test_services.py Add OZW node config parameters websocket commands (#40527) 2020-10-05 21:47:28 +02:00
test_switch.py Rename zwave_mqtt to ozw (#35631) 2020-05-14 22:56:04 +02:00
test_websocket_api.py Add OZW node config parameters websocket commands (#40527) 2020-10-05 21:47:28 +02:00