added ep760
This commit is contained in:
1 parent
2abcbbb392
commit
8409221675
7 files changed
+25
-18
No files matched your search
@@ -10,8 +10,11 @@ from ..devices.eb3a import EB3A
|
||||
from ..devices.ep500 import EP500
|
||||
from ..devices.ep500p import EP500P
|
||||
from ..devices.ep600 import EP600
|
||||
from ..devices.ep760 import EP760
|
||||
|
||||
DEVICE_NAME_RE = re.compile(r"^(AC60|AC200M|AC300|AC500|EB3A|EP500|EP500P|EP600)(\d+)$")
|
||||
DEVICE_NAME_RE = re.compile(
|
||||
r"^(AC60|AC200M|AC300|AC500|EB3A|EP500|EP500P|EP600|EP760)(\d+)$"
|
||||
)
|
||||
|
||||
|
||||
def build_device(address: str, name: str):
|
||||
@@ -32,3 +35,5 @@ def build_device(address: str, name: str):
|
||||
return EP500P(address, match[2])
|
||||
if match[1] == "EP600":
|
||||
return EP600(address, match[2])
|
||||
if match[1] == "EP760":
|
||||
return EP760(address, match[2])
|
||||
Reference in new issue
Block a user