summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--__init__.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/__init__.py b/__init__.py
index 996c96f..1b91a78 100644
--- a/__init__.py
+++ b/__init__.py
@@ -3,10 +3,6 @@ from __future__ import absolute_import
from sleekxmpp import ClientXMPP
import octoprint.plugin
-__plugin_name__ = "OctoXMPP"
-__plugin_version__ = "0.1.0"
-__plugin_description__ = "Notify about some Events over XMPP."
-
class OctoXMPP(octoprint.plugin.EventHandlerPlugin,
octoprint.plugin.SettingsPlugin):
@@ -40,3 +36,8 @@ class OctoXMPP(octoprint.plugin.EventHandlerPlugin,
self._msg_receivers("Druck abgebrochen!")
else:
self._xmpp.send_message(mto="derflob@derflob.de", mbody=event)
+
+__plugin_name__ = "OctoXMPP"
+__plugin_version__ = "0.1.0"
+__plugin_description__ = "Notify about some Events over XMPP."
+__plugin_implementation__ = OctoXMPP()