Added FritzboxPhoneStatusService service and some cosmetic changes.

This commit is contained in:
Johannes Findeisen 2022-10-04 22:59:04 +02:00
commit 5ca94ec14b
5 changed files with 29 additions and 4 deletions

View file

@ -19,6 +19,6 @@ class DummyService(Service):
self.__environment = environment
def execute(self, **kwargs):
log('debug', 'dummy object ' + str(self))
log('debug', 'DummyService object ' + str(self))
#log('debug', 'dummy object @' + str(self) + str(self.__kwargs['foo']))
return

View file

@ -0,0 +1,25 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT)
"""
from fritzconnection.lib.fritzstatus import FritzStatus
from linspector.core.helpers import log
from linspector.core.service import Service
def create(configuration, environment):
return FritzboxPhoneStatusService(configuration, environment)
class FritzboxPhoneStatusService(Service):
def __init__(self, configuration, environment):
super().__init__(configuration, environment)
self.__configuration = configuration
self.__environment = environment
def execute(self, **kwargs):
log('debug', 'FritzboxPhoneStatusService object ' + str(self))
return

View file

@ -21,5 +21,5 @@ class FritzboxUplinkService(Service):
self.__environment = environment
def execute(self, **kwargs):
log('debug', 'fritzboxuplink object ' + str(self))
log('debug', 'FritzboxUplinkService object ' + str(self))
return