Skip to content

Conversation

@raman325
Copy link
Contributor

@raman325 raman325 commented Apr 8, 2021

Right now if you provide a dictionary of partial parameter values to set for bulk_set_partial_config_parameters, it's assumed that the keys are an integer representation of a bitmask. For further convenience, we are adding the ability for users to specify the property name of the partial parameter as the key instead.

Note that because most of the logic lives in the library, the only change that is needed on the HA side is a bump in the lib version and a change to the service schema to allow strings to be passed

Copy link
Contributor

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@MartinHjelmare MartinHjelmare merged commit b45969f into home-assistant-libs:master Apr 8, 2021
@raman325 raman325 deleted the bulk_set_property_name branch April 8, 2021 20:14
raman325 added a commit to raman325/zwave-js-server-python that referenced this pull request Apr 19, 2021
…sistant-libs#188)

* Support property names in bulk_set_partial_config_parameters

* ignore type error because we know the property key for partial values will always be an int

* fix formatting

* lint

* switch to list comprehension and cast property_key instead of ignoring type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants