summaryrefslogtreecommitdiff
path: root/netdisco/discoverables/octoprint.py
diff options
context:
space:
mode:
Diffstat (limited to 'netdisco/discoverables/octoprint.py')
-rw-r--r--netdisco/discoverables/octoprint.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/netdisco/discoverables/octoprint.py b/netdisco/discoverables/octoprint.py
new file mode 100644
index 0000000..f6d10e0
--- /dev/null
+++ b/netdisco/discoverables/octoprint.py
@@ -0,0 +1,12 @@
+"""Discover OctoPrint Servers."""
+from . import SSDPDiscoverable
+
+
+class Discoverable(SSDPDiscoverable):
+ """Add support for discovering OctoPrint servers."""
+
+ def get_entries(self):
+ """Get all the OctoPrint uPnP entries."""
+ return self.find_by_device_description({
+ "manufacturer": "The OctoPrint Project"
+ })