diff --git a/src/spectrumdevice/settings/status.py b/src/spectrumdevice/settings/status.py index 4042ea7..0ed6218 100644 --- a/src/spectrumdevice/settings/status.py +++ b/src/spectrumdevice/settings/status.py @@ -57,6 +57,4 @@ class StatusCode(Enum): def decode_status(code: int) -> CARD_STATUS_TYPE: """Converts the integer value received by a card when queried about its status to a list of StatusCodes.""" possible_codes = [code.value for code in StatusCode] - return CARD_STATUS_TYPE( - [StatusCode(found_code) for found_code in decode_bitmap_using_list_of_ints(code, possible_codes)] - ) + return [StatusCode(found_code) for found_code in decode_bitmap_using_list_of_ints(code, possible_codes)]