From 79520bda7ae6120a21baf382b9cf7f741d084dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pablo=20Gim=C3=A9nez?= Date: Sun, 9 Aug 2020 20:49:23 -0300 Subject: [PATCH] typo --- modules/core/core.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/core/core.py b/modules/core/core.py index 479c61f..f6910ee 100644 --- a/modules/core/core.py +++ b/modules/core/core.py @@ -83,7 +83,7 @@ class SensorAPI(object): def init_sensors(self): ''' Initialize all sensors - :return: + :return: ''' self.app.logger.info("Init Sensors") @@ -108,15 +108,15 @@ class SensorAPI(object): def init_sensor(self, id): ''' initialize sensor by id - :param id: - :return: + :param id: + :return: ''' def start_active_sensor(instance): ''' start active sensors as background job - :param instance: - :return: + :param instance: + :return: ''' instance.execute() @@ -447,12 +447,12 @@ class CraftBeerPi(ActorAPI, SensorAPI): def run_init(self): ''' call all initialziers after startup - :return: + :return: ''' self.app.logger.info("Invoke Init") self.cache["init"] = sorted(self.cache["init"], key=lambda k: k['order']) for i in self.cache.get("init"): - self.app.logger.info("INITIALIZER - METHOD %s PAHT %s: " % (i.get("function").__name__, str(inspect.getmodule(i.get("function")).__file__) )) + self.app.logger.info("INITIALIZER - METHOD %s PATH %s: " % (i.get("function").__name__, str(inspect.getmodule(i.get("function")).__file__) )) i.get("function")(self) @@ -461,10 +461,10 @@ class CraftBeerPi(ActorAPI, SensorAPI): ''' Background Task Decorator - :param key: - :param interval: - :param config_parameter: - :return: + :param key: + :param interval: + :param config_parameter: + :return: ''' def real_decorator(function): self.cache["background"].append({"function": function, "key": key, "interval": interval, "config_parameter": config_parameter}) @@ -476,7 +476,7 @@ class CraftBeerPi(ActorAPI, SensorAPI): def run_background_processes(self): ''' call all background task after startup - :return: + :return: ''' self.app.logger.info("Start Background")