From 26d395f05dcfdcd24276042eb3e85fcd3732b8fc Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Wed, 17 Dec 2025 23:40:30 +0000 Subject: [PATCH] Type fixes for system Thng --- src/openflexure_microscope_server/things/system.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/system.py b/src/openflexure_microscope_server/things/system.py index 7c72b2ab..df89ca73 100644 --- a/src/openflexure_microscope_server/things/system.py +++ b/src/openflexure_microscope_server/things/system.py @@ -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)