mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-13 19:25:12 +00:00
Merge branch 'dev' into Mock-Device/Action
This commit is contained in:
@@ -4,17 +4,15 @@ import time
|
||||
class VacuumPumpMock:
|
||||
def __init__(self, port: str = "COM6"):
|
||||
self._status = "OPEN"
|
||||
|
||||
|
||||
@property
|
||||
def status(self) -> str:
|
||||
return self._status
|
||||
|
||||
def get_status(self) -> str:
|
||||
return self._status
|
||||
|
||||
|
||||
def set_status(self, string):
|
||||
time.sleep(5)
|
||||
|
||||
self._status = string
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user