async def handle_frame(self, frame):
if isinstance(frame, FrameGetSceneListConfirmation):<EOL><INDENT>self.count_scenes = frame.count_scenes<EOL>if self.count_scenes == <NUM_LIT:0>:<EOL><INDENT>self.success = True<EOL>return True<EOL><DEDENT>return False<EOL><DEDENT>if isinstance(frame, FrameGetSceneListNotification):<EOL><INDENT>self.scenes.extend(frame.scenes)<EOL>if frame.remaining_scenes != <NUM_LIT:0>:<EOL><INDENT>return False<EOL><DEDENT>if self.count_scenes != len(self.scenes):<EOL><INDENT>PYVLXLOG.warning("<STR_LIT>")<EOL><DEDENT>self.success = True<EOL>return True<EOL><DEDENT>return False<EOL>
Handle incoming API frame, return True if this was the expected frame.