Skip to content

docs: fix quick-start to use discover/invoke selector API#56

Open
nicolas-rabault wants to merge 1 commit into
arm:mainfrom
nicolas-rabault:docs/fix-quickstart-discover-api
Open

docs: fix quick-start to use discover/invoke selector API#56
nicolas-rabault wants to merge 1 commit into
arm:mainfrom
nicolas-rabault:docs/fix-quickstart-discover-api

Conversation

@nicolas-rabault

Copy link
Copy Markdown

The agent quick-start used the deprecated discover_devices / invoke_device helpers, which now emit DeprecationWarnings.

This switches the snippet to the current discover() / invoke() selector API, and adds a category label to the example SensorDriver so that discover('device(category:sensor)') actually matches the device — the new selector DSL matches on device id and labels, not on device_type.

Verified locally: discover('device(category:sensor)') returns the sensor and invoke('device(sensor-001).function(get_reading)') returns the reading.

The agent quick-start used the deprecated discover_devices/invoke_device
helpers, which emit DeprecationWarnings. Switch to discover()/invoke() and
add the category label to the example SensorDriver so
discover('device(category:sensor)') actually matches the device.
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.

1 participant