How to use the qhue.qhue.QhueException function in qhue

To help you get started, we’ve selected a few qhue 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 trevorprater / sleep-at-night / sleep_at_night.py View on Github external
def set_color(self, curr_balance):
        hue = self.calculate_color(curr_balance)
        if not len(self.light_ids):
            self.light_ids = list(self.bridge.lights().keys())

        for _id in self.light_ids:
            try:
                self.bridge.lights[int(_id)].state(hue=hue)
            except QhueException as e:
                LOGGER.warning(e)

qhue

Qhue: python wrapper for Philips Hue API

GPL-2.0
Latest version published 3 years ago

Package Health Score

39 / 100
Full package analysis