pylabrobot.opentrons.DoorStatus.from_response#

classmethod DoorStatus.from_response(data: Dict[str, Any]) → DoorStatus#

Parse the data object of GET /robot/door/status.

Parameters:

data (Dict[str, Any]) – the response’s data object.

Raises:

OpentronsProtocolError – If the status is neither “open” nor “closed”, or the requirement is not a boolean.

Return type:

DoorStatus