From a8fa2b31fd10eadd25781b74b2fca12b3c24e179 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Wed, 20 Nov 2019 22:16:57 +0100 Subject: [PATCH] #6 UI Updates senden und anzeigen logs entfernt --- octoprint_mystromswitch/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py index fa85256..6dd0afd 100644 --- a/octoprint_mystromswitch/__init__.py +++ b/octoprint_mystromswitch/__init__.py @@ -56,7 +56,6 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, try: request = requests.get( 'http://{}/report'.format(self.ip), timeout=1) - self._logger.info(request.json()) self._plugin_manager.send_plugin_message(self._identifier, request.json()) except (requests.exceptions.ConnectionError, ValueError): @@ -65,10 +64,10 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, self._logger.info("Ip is None") def on_after_startup(self): - self._logger.info("Hello World!") + pass def on_shutdown(self): - self._logger.info("Hello World!") + pass def on_settings_migrate(self, target, current): pass