Fixed dynamic loading of notifications, tasks and service. My last implementation was wrong and ugly. Now it seems to be the pythonic way.

This commit is contained in:
Johannes Findeisen 2022-09-27 21:18:47 +02:00
commit c17b061fd0
25 changed files with 104 additions and 15 deletions

View file

@ -26,6 +26,10 @@ from logging import getLogger
logger = getLogger('linspector')
def get(configuration, environment):
return FritzboxUplinkService(configuration, environment)
# TODO: check for all required configuration options and set defaults if needed.
class FritzboxUplinkService: