summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvgeny Sorokin <me@ch1p.io>2024-06-25 22:43:09 +0300
committerEvgeny Sorokin <me@ch1p.io>2024-06-25 22:43:09 +0300
commit275d1384365b78101eeb464be108610d395fc987 (patch)
tree8900bdc3b97bba46595308533c06fd889cbf8ec4 /include
parentd816689f7db415e10c15d07048c0c4fbaeb3f04f (diff)
web_kbn upd
Diffstat (limited to 'include')
-rw-r--r--include/py/homekit/modem/config.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/py/homekit/modem/config.py b/include/py/homekit/modem/config.py
index 16d1ba0..1653751 100644
--- a/include/py/homekit/modem/config.py
+++ b/include/py/homekit/modem/config.py
@@ -1,5 +1,11 @@
from ..config import ConfigUnit, Translation
from typing import Optional
+from enum import Enum
+
+
+class ModemType(Enum):
+ E3372 = 'e3372'
+ GPON = 'gpon'
class ModemsConfig(ConfigUnit):
@@ -18,7 +24,8 @@ class ModemsConfig(ConfigUnit):
'schema': {
'ip': cls._addr_schema(required=True, only_ip=True),
'gateway_ip': cls._addr_schema(required=False, only_ip=True),
- 'legacy_auth': {'type': 'boolean', 'required': True}
+ 'legacy_auth': {'type': 'boolean', 'required': True},
+ 'type': {'type': 'string', 'allowed': [t.value for t in ModemType], 'required': True}
}
}