File: connection_state.py

package info (click to toggle)
python-xknx 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,012 kB
  • sloc: python: 39,710; javascript: 8,556; makefile: 27; sh: 12
file content (22 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Connection States from XKNX."""

from enum import Enum


class XknxConnectionState(Enum):
    """Possible connection state values."""

    CONNECTED = "CONNECTED"
    CONNECTING = "CONNECTING"
    DISCONNECTED = "DISCONNECTED"


class XknxConnectionType(Enum):
    """Possible connection type values."""

    NOT_CONNECTED = None
    ROUTING = "Routing"
    ROUTING_SECURE = "Routing IP Secure"
    TUNNEL_SECURE = "Tunnel IP Secure"
    TUNNEL_TCP = "Tunnel TCP"
    TUNNEL_UDP = "Tunnel UDP"