def convert_frame_to_node(pyvlx, frame):
<EOL>if frame.node_type == NodeTypeWithSubtype.WINDOW_OPENER:<EOL><INDENT>return Window(pyvlx=pyvlx, node_id=frame.node_id, name=frame.name, rain_sensor=False)<EOL><DEDENT>if frame.node_type == NodeTypeWithSubtype.WINDOW_OPENER_WITH_RAIN_SENSOR:<EOL><INDENT>return Window(pyvlx=pyvlx, node_id=frame.node_id, name=frame.name, rain_sensor=True)<EOL><DEDENT>if frame.node_type == NodeTypeWithSubtype.ROLLER_SHUTTER orframe.node_type == NodeTypeWithSubtype.DUAL_ROLLER_SHUTTER:<EOL><INDENT>return RollerShutter(pyvlx=pyvlx, node_id=frame.node_id, name=frame.name)<EOL><DEDENT>if frame.node_type == NodeTypeWithSubtype.INTERIOR_VENETIAN_BLIND orframe.node_type == NodeTypeWithSubtype.VERTICAL_INTERIOR_BLINDS orframe.node_type == NodeTypeWithSubtype.EXTERIOR_VENETIAN_BLIND orframe.node_type == NodeTypeWithSubtype.LOUVER_BLIND:<EOL><INDENT>return Blind(pyvlx=pyvlx, node_id=frame.node_id, name=frame.name)<EOL><DEDENT>if frame.node_type == NodeTypeWithSubtype.VERTICAL_EXTERIOR_AWNING orframe.node_type == NodeTypeWithSubtype.HORIZONTAL_AWNING:<EOL><INDENT>return Awning(pyvlx=pyvlx, node_id=frame.node_id, name=frame.name)<EOL><DEDENT>if frame.node_type == NodeTypeWithSubtype.ON_OFF_SWITCH:<EOL><INDENT>return OnOffSwitch(pyvlx=pyvlx, node_id=frame.node_id, name=frame.name)<EOL><DEDENT>PYVLXLOG.warning("<STR_LIT>", frame.node_type)<EOL>return None<EOL>
Convert FrameGet[All]Node[s]InformationNotification into Node object.