-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathgeneric.py
More file actions
33 lines (24 loc) · 895 Bytes
/
Copy pathgeneric.py
File metadata and controls
33 lines (24 loc) · 895 Bytes
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
33
"""Generic driver for non-DOCSIS / no-modem mode."""
from __future__ import annotations
from .base import ModemDriver
from ..types import DocsisData, DeviceInfo, ConnectionInfo
class GenericDriver(ModemDriver):
"""No-op driver that returns empty but structurally valid data.
Allows all modem-agnostic features (Speedtest, BQM, Smokeping,
BNetzA, Weather, Journal) to work standalone.
"""
def login(self) -> None:
pass
def get_docsis_data(self) -> DocsisData:
return {
"channelDs": {"docsis30": [], "docsis31": []},
"channelUs": {"docsis30": [], "docsis31": []},
}
def get_device_info(self) -> DeviceInfo:
return {
"model": "Generic Router",
"sw_version": "N/A",
"manufacturer": "N/A",
}
def get_connection_info(self) -> ConnectionInfo:
return {}