You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method matches adapters based on the "index" the adapter is loaded as, which requires the deployments be configured with that exact name. The API exposes the name of the class of the adapter, which is static (unless the source code is changed), so would be much more reliable.
Update _create_adapter_controller to read this status and match on the class name instead of the arbitrary index name. The initialise method should probably extract this and pass the class name into _create_adapter_controller, as it has already done a request of the full tree here so has that available.
The text was updated successfully, but these errors were encountered:
GDYendell
changed the title
Match adapter to controlle based on module rather than key
Match adapter to controller based on module rather than key
Aug 20, 2024
This method matches adapters based on the "index" the adapter is loaded as, which requires the deployments be configured with that exact name. The API exposes the name of the class of the adapter, which is static (unless the source code is changed), so would be much more reliable.
e.g.
response = {..., 'module': {'value': 'EigerFanAdapter', 'writeable': False, 'type': 'str'}, ...}
Update
_create_adapter_controller
to read this status and match on the class name instead of the arbitrary index name. Theinitialise
method should probably extract this and pass the class name into_create_adapter_controller
, as it has already done a request of the full tree here so has that available.The text was updated successfully, but these errors were encountered: