From 3c9fd6731e5049362575e125163cb98cfa1ae6b5 Mon Sep 17 00:00:00 2001 From: Nagji Date: Mon, 15 Jul 2024 15:40:03 -0700 Subject: [PATCH] fix: Compare arn strings against explicit enum string values --- src/braket/aws/aws_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/braket/aws/aws_device.py b/src/braket/aws/aws_device.py index 229fc1a6c..e7deee418 100644 --- a/src/braket/aws/aws_device.py +++ b/src/braket/aws/aws_device.py @@ -885,7 +885,7 @@ def emulator(self) -> Emulator: Returns: Emulator: An emulator for this device, if this is not a simulator device. """ - if self._arn in Devices.Amazon: + if self._arn in [simulator_enum.value for simulator_enum in Devices.Amazon]: raise ValueError( "Creating an emulator from a Braket managed simulator is not supported." )