Skip to content

Commit

Permalink
Added support for Canon printer (home-assistant-libs#183)
Browse files Browse the repository at this point in the history
Example scan result:
2018-03-30 13:13:50.940639 - Found new service: canon_printer {'host':
'192.168.1.40', 'port': 80, 'ssdp_description':
'http:https://192.168.1.40:80/Canon_basic.xml', 'name': 'MX620 series
(UPnP)_4767DBFBCDEF', 'model_name': 'MX620 series', 'model_number':
'MX620 series', 'serial': 'D8492FFBCDEF', 'manufacturer': 'CANON INC.',
'udn': 'uuid:00000000-0000-1000-8000-D8492FFBCDEF'}
  • Loading branch information
nielstron authored and balloob committed Mar 31, 2018
1 parent 3d4cd23 commit 746f33e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions netdisco/discoverables/canon_printer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""Discover Canon Printers"""
from . import SSDPDiscoverable


class Discoverable(SSDPDiscoverable):
"""Support for the discovery of Canon Printers"""

def get_entries(self):
"""Get all the Canon Printer uPnP entries."""
return self.find_by_device_description({
"manufacturer": "CANON INC.",
"deviceType": "urn:schemas-cipa-jp:device:DPSPrinter:1"
})

0 comments on commit 746f33e

Please sign in to comment.