Skip to content

Commit

Permalink
python enum to value
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephParsons committed Jul 15, 2024
1 parent f68f644 commit e0d1711
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/ts/mtreflector/mt_reflector_csc.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def handle_summary_state(self) -> None:
if self.disabled_or_enabled and self.reflector_controller is None:
if self.should_be_connected:
await self.fault(
code=MTReflectorStatus.CONNECTION_ERROR,
code=MTReflectorStatus.CONNECTION_ERROR.value,
report="reflector controller should be connected but isn't.",
)
raise RuntimeError("Reflector Controller should be connected but isn't")
Expand Down Expand Up @@ -204,7 +204,7 @@ async def do_open(self, data: types.SimpleNamespace) -> None:
)

await self.evt_reflectorStatus.set_write(
reflectorStatus=self.reflector_controller.labjack_item.status,
reflectorStatus=self.reflector_controller.labjack_item.status.value,
)

async def do_close(self, data: types.SimpleNamespace) -> None:
Expand All @@ -224,7 +224,7 @@ async def do_close(self, data: types.SimpleNamespace) -> None:
)

await self.evt_reflectorStatus.set_write(
reflectorStatus=self.reflector_controller.labjack_item.status,
reflectorStatus=self.reflector_controller.labjack_item.status.value,
)


Expand Down

0 comments on commit e0d1711

Please sign in to comment.