Debian Codegraph @

asusrouter/modules/device.py

raw
1 """Device module.
2
3 This module defines all device-related types, classes and functions.
4 """
5
6 from __future__ import annotations
7
8 from enum import IntEnum
9
10 from asusrouter.const import UNKNOWN_MEMBER
11 from asusrouter.tools.enum import FromIntMixin
12
13
14 class DeviceOperationMode(FromIntMixin, IntEnum):
15 """Types of device operation modes.
16
17 Known modes
18 ---
19 - **ROUTER**
20 - **REPEATER**
21 - **ACCESS_POINT**
22 - **MEDIA_BRIDGE**
23 - **AIMESH_NODE**
24 """
25
26 UNKNOWN = UNKNOWN_MEMBER
27
28 ROUTER = 1
29 REPEATER = 2
30 ACCESS_POINT = 3
31 MEDIA_BRIDGE = 4
32 AIMESH_NODE = 5