How to use the 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 cryzed / Amby / amby / cli.py View on Github external
def change_light_state(bridge, light, state):
    for key in NON_MODIFIABLE_STATES:
        if key in state:
            del state[key]

    try:
        bridge.lights[light].state(**state)
    except QhueException as exception:
        stderr(f'Exception occurred while controlling light #{light}: {exception}')

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