How to use the pybotvac.exceptions.NeatoUnsupportedDevice function in pybotvac

To help you get started, we’ve selected a few pybotvac examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stianaske / pybotvac / pybotvac / robot.py View on Github external
"""
        self.name = name
        self._vendor = vendor
        self.serial = serial
        self.secret = secret
        self.traits = traits
        self.has_persistent_maps = has_persistent_maps

        self._url = '{endpoint}/vendors/{vendor_name}/robots/{serial}/messages'.format(
            endpoint=re.sub(':\d+', '', endpoint),  # Remove port number
            vendor_name=vendor.name,
            serial=self.serial)
        self._headers = {'Accept': 'application/vnd.neato.nucleo.v1'}

        if self.service_version not in SUPPORTED_SERVICES:
            raise NeatoUnsupportedDevice("Version " + self.service_version + " of service houseCleaning is not known")

pybotvac

Python package for controlling Neato pybotvac Connected vacuum robot

MIT
Latest version published 8 months ago

Package Health Score

56 / 100
Full package analysis

Similar packages