Is there any trick for converting from a Definitio...
# ask-community
s
Is there any trick for converting from a Definitions to a RepositoryDefinition?
build_sensor_context
requires a RepositoryDefinition so it’s hard for me to figure out how to write tests using my Definitions
🤖 1
s
Hmm that’s an oversight that we’ve left a public API requiring a
RepositoryDefinition
. Would you mind filing an issue? But for an immediate solution to your problem, you can call
<definitions_object>.get_repository_def()
. This is a private method but it will work for you for now.
s
🙏 1