Type fixes for system Thng
This commit is contained in:
parent
51512f36f7
commit
26d395f05d
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ class OpenFlexureSystem(lt.Thing):
|
|||
return UUID(self._microscope_id)
|
||||
|
||||
@microscope_id.setter
|
||||
def microscope_id(self, uuid: UUID) -> None:
|
||||
def _set_microscope_id(self, uuid: UUID) -> None:
|
||||
self._microscope_id = uuid
|
||||
|
||||
@lt.property
|
||||
|
|
@ -98,6 +98,7 @@ class OpenFlexureSystem(lt.Thing):
|
|||
SHUTDOWN_CMD,
|
||||
stderr=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
text=True,
|
||||
)
|
||||
|
||||
out, err = p.communicate()
|
||||
|
|
@ -116,6 +117,7 @@ class OpenFlexureSystem(lt.Thing):
|
|||
REBOOT_CMD,
|
||||
stderr=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
text=True,
|
||||
)
|
||||
out, err = p.communicate()
|
||||
return CommandOutput(output=out, error=err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue