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
In the environment module, a list of all modules used by the environment module is created called "modules" and a subset is also created called "service_modules".
Modules have the common method available: get_all_data(). This should be created in a base class to reliably provide this to the "all_data" API method and also act as a structure with docstring to show that modules can have this function to offer any attributes up to the all data API endpoint.
Equally the service_module should extend the module base class where the module as a service that can be loaded into the async loop for similar reasons above.
Can then have service_modules be automatically created from modules based on this being present.
The text was updated successfully, but these errors were encountered:
Best to have environment build a list of all modules and then have init_modules parse all module but have an if has attr init_service to only call the method if it exists.
base service class will have init_service and output some logging, extended classes can call super() and then execute further module specific service init code.
In the environment module, a list of all modules used by the environment module is created called "modules" and a subset is also created called "service_modules".
Modules have the common method available: get_all_data(). This should be created in a base class to reliably provide this to the "all_data" API method and also act as a structure with docstring to show that modules can have this function to offer any attributes up to the all data API endpoint.
Equally the service_module should extend the module base class where the module as a service that can be loaded into the async loop for similar reasons above.
Can then have service_modules be automatically created from modules based on this being present.
The text was updated successfully, but these errors were encountered: