Add support for EL30V2 device in manifest and device builder
This commit is contained in:
1 parent
96a5cd4ee1
commit
fb73daef62
3 files changed
+14
-2
No files matched your search
@@ -0,0 +1,8 @@
|
||||
"""Elite 30 V2 fields."""
|
||||
|
||||
from ..base_devices.ProtocolV2Device import ProtocolV2Device
|
||||
|
||||
|
||||
class EL30V2(ProtocolV2Device):
|
||||
def __init__(self, address: str, sn: str):
|
||||
super().__init__(address, "EL30V2", sn)
|
||||
@@ -17,9 +17,10 @@ from ..devices.ep500p import EP500P
|
||||
from ..devices.ep600 import EP600
|
||||
from ..devices.ep760 import EP760
|
||||
from ..devices.ep800 import EP800
|
||||
from ..devices.el30v2 import EL30V2
|
||||
|
||||
DEVICE_NAME_RE = re.compile(
|
||||
r"^(AC60|AC70|AC70P|AC180|AC180P|AC200L|AC200M|AC300|AC500|EB3A|EP500|EP500P|EP600|EP760|EP800)(\d+)$"
|
||||
r"^(AC60|AC70|AC70P|AC180|AC180P|AC200L|AC200M|AC300|AC500|EB3A|EP500|EP500P|EP600|EP760|EP800|EL30V2)(\d+)$"
|
||||
)
|
||||
|
||||
|
||||
@@ -55,6 +56,8 @@ def build_device(address: str, name: str):
|
||||
return EP760(address, match[2])
|
||||
if match[1] == "EP800":
|
||||
return EP800(address, match[2])
|
||||
if match[1] == "EL30V2":
|
||||
return EL30V2(address, match[2])
|
||||
|
||||
|
||||
def get_type_by_bt_name(bt_name: str):
|
||||
|
||||
Reference in new issue
Block a user