summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2015-09-06 23:22:52 +0200
committerFlorian Baumann <derflob@derflob.de>2015-09-06 23:22:52 +0200
commit656207899ee1799b2eda36029c98d6014f39c2c8 (patch)
tree4b6cbefa3d0adb7671e7c07e2c0894c9b3280063
parent604f162bc9533c7504d4c82ad24bd7e0c8b55e81 (diff)
downloadxmpp-656207899ee1799b2eda36029c98d6014f39c2c8.tar.gz
xmpp-656207899ee1799b2eda36029c98d6014f39c2c8.tar.bz2
add __plugin_implementation__
-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()