File: device.py

package info (click to toggle)
python-asusrouter 1.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,856 kB
  • sloc: python: 20,497; makefile: 3
file content (32 lines) | stat: -rw-r--r-- 600 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
23
24
25
26
27
28
29
30
31
32
"""Device module.

This module defines all device-related types, classes and functions.
"""

from __future__ import annotations

from enum import IntEnum

from asusrouter.const import UNKNOWN_MEMBER
from asusrouter.tools.enum import FromIntMixin


class DeviceOperationMode(FromIntMixin, IntEnum):
    """Types of device operation modes.

    Known modes
    ---
    - **ROUTER**
    - **REPEATER**
    - **ACCESS_POINT**
    - **MEDIA_BRIDGE**
    - **AIMESH_NODE**
    """

    UNKNOWN = UNKNOWN_MEMBER

    ROUTER = 1
    REPEATER = 2
    ACCESS_POINT = 3
    MEDIA_BRIDGE = 4
    AIMESH_NODE = 5