File: power_level.py

package info (click to toggle)
zwave-js-server-python 0.67.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,820 kB
  • sloc: python: 15,886; sh: 21; javascript: 16; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Constants for the Power Level Command Class."""

from __future__ import annotations

from enum import IntEnum


class PowerLevelTestStatus(IntEnum):
    """Enum with all known power level test statuses."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/zwave-js/src/lib/commandclass/PowerlevelCC.ts#L52
    FAILED = 0
    SUCCESS = 1
    IN_PROGRESS = 2