Add support for new credential management API, schema 48#1418
Conversation
|
This PR needs to wait for completion of schema 47 support. |
|
What about the lock utility functions that HA uses? They should use these new methods under the hood |
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
|
Some |
|
what do we want to do about https://github.com/home-assistant-libs/zwave-js-server-python/blob/main/zwave_js_server/util/lock.py ? The HA services are currently dependent on these functions and I don't think the lib should have two separate paths for this functionality. Maybe we just remove it entirely and make the change as part of the dependency bump? |
|
If we don't need those utils anymore we can remove them and make a breaking change. |
|
Only the code related ones though, not the lock configuration. |
|
No, we should not expand the scope of this PR. |
Adds support for the new access-control / credential-management API introduced in Z-Wave JS 15.23.4 and exposed via Z-Wave JS Server schema 48 (zwave-js-server v3.8.0).
Bumps
MAX_SERVER_SCHEMA_VERSIONto 48 and adds:AccessControlAPIwrapper onEndpoint/Nodewith all schema-48 commands (users, credentials, admin code, credential learn)DataTypeTypedDicts forUserData,CredentialData, capabilities, event argsconst.command_class.access_control:UserCredentialType,UserCredentialUserType,UserCredentialRule,UserCredentialLearnStatus,SetUserResult,SetCredentialResult,AssignCredentialResultuser added/modified/deleted,credential added/modified/deleted,credential learn progress/completedbytes_to_buffer_object/buffer_object_to_bytes) for credential payloadsRequires: